diff --git a/app/javascript/dashboard/components/ChatList.vue b/app/javascript/dashboard/components/ChatList.vue index 3e251f42b..eb410f7d5 100644 --- a/app/javascript/dashboard/components/ChatList.vue +++ b/app/javascript/dashboard/components/ChatList.vue @@ -514,14 +514,14 @@ export default { this.$store.dispatch('campaigns/get'); } - bus.$on('fetch_conversation_stats', () => { + this.$emitter.on('fetch_conversation_stats', () => { this.$store.dispatch('conversationStats/get', this.conversationFilters); }); - bus.$on(CMD_SNOOZE_CONVERSATION, this.onCmdSnoozeConversation); + this.$emitter.on(CMD_SNOOZE_CONVERSATION, this.onCmdSnoozeConversation); }, beforeDestroy() { - bus.$off(CMD_SNOOZE_CONVERSATION, this.onCmdSnoozeConversation); + this.$emitter.off(CMD_SNOOZE_CONVERSATION, this.onCmdSnoozeConversation); }, methods: { updateVirtualListProps(key, value) { @@ -742,7 +742,7 @@ export default { updateAssigneeTab(selectedTab) { if (this.activeAssigneeTab !== selectedTab) { this.resetBulkActions(); - bus.$emit('clearSearchInput'); + this.$emitter.emit('clearSearchInput'); this.activeAssigneeTab = selectedTab; if (!this.currentPage) { this.fetchConversations(); diff --git a/app/javascript/dashboard/components/Code.vue b/app/javascript/dashboard/components/Code.vue index 269311c2d..d8f609e29 100644 --- a/app/javascript/dashboard/components/Code.vue +++ b/app/javascript/dashboard/components/Code.vue @@ -25,8 +25,10 @@