feat: navigate from customer to chat
This commit is contained in:
parent
5ed77e68c4
commit
08e71e28e3
2 changed files with 6 additions and 2 deletions
|
|
@ -2,10 +2,13 @@ async function directMessages(path) {
|
|||
const template = await loadTemplateAsync(path)
|
||||
Vue.component('direct-messages', {
|
||||
name: 'direct-messages',
|
||||
props: ['adminkey', 'inkey'],
|
||||
props: ['active-chat-customer', 'adminkey', 'inkey'],
|
||||
template,
|
||||
|
||||
watch: {
|
||||
activeChatCustomer: async function (n) {
|
||||
this.activePublicKey = n
|
||||
},
|
||||
activePublicKey: async function (n) {
|
||||
await this.getDirectMessages(n)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue