Fix: Populate only agents part of the inbox in conversations (#2060)

* Fix: Show only agents part of the inbox in conversations

* Show only verified agents

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
Nithin David Thomas 2021-04-09 14:32:29 +05:30 committed by GitHub
parent 98f4a2f6f3
commit 03bd34be86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 168 additions and 8 deletions

View file

@ -19,6 +19,7 @@
<contact-panel
v-if="showContactPanel"
:conversation-id="currentChat.id"
:inbox-id="currentChat.inbox_id"
:on-toggle="onToggleContactPanel"
/>
</div>
@ -59,6 +60,13 @@ export default {
return this.isContactPanelOpen && this.currentChat.id;
},
},
watch: {
'currentChat.inbox_id'(inboxId) {
if (inboxId) {
this.$store.dispatch('inboxMembers/fetch', { inboxId });
}
},
},
methods: {
onToggleContactPanel() {
this.$emit('contact-panel-toggle');