[Bug] Update copy in search agent select dropdown (#204)
This commit is contained in:
parent
047e485998
commit
7b4b5d31d9
3 changed files with 12 additions and 1 deletions
|
@ -23,6 +23,10 @@ export default {
|
|||
|
||||
methods: {
|
||||
...mapActions('conversation', ['fetchOldConversations']),
|
||||
scrollConversationToBottom() {
|
||||
const container = this.$el.querySelector('.conversation-wrap');
|
||||
container.scrollTop = container.scrollHeight;
|
||||
},
|
||||
},
|
||||
|
||||
mounted() {
|
||||
|
@ -46,6 +50,8 @@ export default {
|
|||
const message = JSON.parse(e.data.replace('chatwoot-widget:', ''));
|
||||
if (message.event === 'config-set') {
|
||||
this.fetchOldConversations();
|
||||
} else if (message.event === 'widget-visible') {
|
||||
this.scrollConversationToBottom();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue