[Bug] Update copy in search agent select dropdown (#204)
This commit is contained in:
parent
047e485998
commit
7b4b5d31d9
@ -25,7 +25,9 @@
|
|||||||
track-by="id"
|
track-by="id"
|
||||||
@select="assignAgent"
|
@select="assignAgent"
|
||||||
@remove="removeAgent"
|
@remove="removeAgent"
|
||||||
/>
|
>
|
||||||
|
<span slot="noResult">{{ $t('AGENT_MGMT.SEARCH.NO_RESULTS') }}</span>
|
||||||
|
</multiselect>
|
||||||
</div>
|
</div>
|
||||||
<ResolveButton />
|
<ResolveButton />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -84,6 +84,9 @@
|
|||||||
"SUCCESS_MESSAGE": "Agent updated successfully",
|
"SUCCESS_MESSAGE": "Agent updated successfully",
|
||||||
"ERROR_MESSAGE": "Could not connect to Woot Server, Please try again later"
|
"ERROR_MESSAGE": "Could not connect to Woot Server, Please try again later"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"SEARCH": {
|
||||||
|
"NO_RESULTS": "No agents found."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,6 +23,10 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions('conversation', ['fetchOldConversations']),
|
...mapActions('conversation', ['fetchOldConversations']),
|
||||||
|
scrollConversationToBottom() {
|
||||||
|
const container = this.$el.querySelector('.conversation-wrap');
|
||||||
|
container.scrollTop = container.scrollHeight;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -46,6 +50,8 @@ export default {
|
|||||||
const message = JSON.parse(e.data.replace('chatwoot-widget:', ''));
|
const message = JSON.parse(e.data.replace('chatwoot-widget:', ''));
|
||||||
if (message.event === 'config-set') {
|
if (message.event === 'config-set') {
|
||||||
this.fetchOldConversations();
|
this.fetchOldConversations();
|
||||||
|
} else if (message.event === 'widget-visible') {
|
||||||
|
this.scrollConversationToBottom();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user