fix: Replace the bus events with emitter in widget (#9584)
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
co-authored by
Muhsin Keloth
parent
af90f21cfd
commit
00ef9c475f
@@ -32,7 +32,7 @@ export default {
|
||||
event: 'setCampaignReadOn',
|
||||
});
|
||||
IFrameHelper.sendMessage({ event: 'toggleBubble' });
|
||||
bus.$emit('snooze-campaigns');
|
||||
this.$emitter.emit('snooze-campaigns');
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
@@ -16,7 +16,7 @@ export default {
|
||||
},
|
||||
mixins: [configMixin, routerMixin],
|
||||
mounted() {
|
||||
bus.$on(ON_CONVERSATION_CREATED, () => {
|
||||
this.$emitter.on(ON_CONVERSATION_CREATED, () => {
|
||||
// Redirect to messages page after conversation is created
|
||||
this.replaceRoute('messages');
|
||||
});
|
||||
@@ -32,7 +32,7 @@ export default {
|
||||
conversationCustomAttributes,
|
||||
}) {
|
||||
if (activeCampaignId) {
|
||||
bus.$emit('execute-campaign', {
|
||||
this.$emitter.emit('execute-campaign', {
|
||||
campaignId: activeCampaignId,
|
||||
customAttributes: conversationCustomAttributes,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user