feat: Pass logged in agent context to dashboard app (#6034)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
committed by
GitHub
parent
f1d1bb84fd
commit
caa45d1d92
@@ -46,11 +46,16 @@ export default {
|
|||||||
return {
|
return {
|
||||||
conversation: this.currentChat,
|
conversation: this.currentChat,
|
||||||
contact: this.$store.getters['contacts/getContact'](this.contactId),
|
contact: this.$store.getters['contacts/getContact'](this.contactId),
|
||||||
|
currentAgent: this.currentAgent,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
contactId() {
|
contactId() {
|
||||||
return this.currentChat?.meta?.sender?.id;
|
return this.currentChat?.meta?.sender?.id;
|
||||||
},
|
},
|
||||||
|
currentAgent() {
|
||||||
|
const { id, name, email } = this.$store.getters.getCurrentUser;
|
||||||
|
return { id, name, email };
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|||||||
Reference in New Issue
Block a user