Skip to content

Commit

Permalink
アクティビティで該当のメッセージに直接飛ぶように
Browse files Browse the repository at this point in the history
  • Loading branch information
mehm8128 committed Dec 2, 2023
1 parent 4c3688d commit 2a8994c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import MessagePanel from '/@/components/UI/MessagePanel/MessagePanel.vue'
import { computed } from 'vue'
import type { ActivityTimelineMessage } from '@traptitech/traq'
import useChannelPath from '/@/composables/useChannelPath'
import { constructMessagesPath } from '/@/router'
const props = defineProps<{
type: 'channel' | 'message'
Expand All @@ -24,5 +25,9 @@ const { channelIdToLink } = useChannelPath()
const titleType = computed(() =>
props.type === 'channel' ? 'channel' : 'user'
)
const channelLink = computed(() => channelIdToLink(props.message.channelId))
const channelLink = computed(() =>
props.type === 'channel'
? channelIdToLink(props.message.channelId)
: constructMessagesPath(props.message.id)
)
</script>

0 comments on commit 2a8994c

Please sign in to comment.