diff --git a/app/javascript/dashboard/components/widgets/conversation/bubble/ReplyTo.vue b/app/javascript/dashboard/components/widgets/conversation/bubble/ReplyTo.vue index 754c79954..fda2a9faa 100644 --- a/app/javascript/dashboard/components/widgets/conversation/bubble/ReplyTo.vue +++ b/app/javascript/dashboard/components/widgets/conversation/bubble/ReplyTo.vue @@ -7,8 +7,10 @@ 'bg-woot-600 text-woot-50': messageType === MESSAGE_TYPE.OUTGOING, '-mx-2': !parentHasAttachments, }" + @click="scrollToMessage" > import MessagePreview from 'dashboard/components/widgets/conversation/MessagePreview.vue'; import { MESSAGE_TYPE } from 'shared/constants/messages'; +import { BUS_EVENTS } from 'shared/constants/busEvents'; export default { name: 'ReplyTo', @@ -42,5 +45,10 @@ export default { data() { return { MESSAGE_TYPE }; }, + methods: { + scrollToMessage() { + bus.$emit(BUS_EVENTS.SCROLL_TO_MESSAGE, { messageId: this.message.id }); + }, + }, };