[Bug] Update copy in search agent select dropdown (#204)

This commit is contained in:
Pranav Raj S
2019-11-10 22:58:55 +05:30
committed by GitHub
parent 047e485998
commit 7b4b5d31d9
3 changed files with 12 additions and 1 deletions

View File

@@ -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();
}
});
},