[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

@@ -25,7 +25,9 @@
track-by="id"
@select="assignAgent"
@remove="removeAgent"
/>
>
<span slot="noResult">{{ $t('AGENT_MGMT.SEARCH.NO_RESULTS') }}</span>
</multiselect>
</div>
<ResolveButton />
</div>

View File

@@ -84,6 +84,9 @@
"SUCCESS_MESSAGE": "Agent updated successfully",
"ERROR_MESSAGE": "Could not connect to Woot Server, Please try again later"
}
},
"SEARCH": {
"NO_RESULTS": "No agents found."
}
}
}

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