Bug : Inbox Filter indicator is removed when a conversation is selected (#535)

This commit is contained in:
Nithin David Thomas
2020-02-22 14:24:51 +05:30
committed by GitHub
parent bc884ae184
commit 330bf87f08
6 changed files with 51 additions and 4 deletions

View File

@@ -69,6 +69,12 @@ export default {
this.$store.dispatch('setActiveInbox', this.inboxId);
}
break;
case 'conversation_through_inbox':
if (this.inboxId) {
this.$store.dispatch('setActiveInbox', this.inboxId);
}
this.setActiveChat();
break;
default:
this.$store.dispatch('setActiveInbox', null);
break;

View File

@@ -31,5 +31,17 @@ export default {
return { conversationId: route.params.conversation_id };
},
},
{
path: frontendURL('inbox/:inbox_id/conversations/:conversation_id'),
name: 'conversation_through_inbox',
roles: ['administrator', 'agent'],
component: ConversationView,
props: route => {
return {
conversationId: route.params.conversation_id,
inboxId: route.params.inbox_id,
};
},
},
],
};