feat: fetch label suggestions from the hook

This commit is contained in:
Shivam Mishra
2023-07-10 15:04:08 +05:30
parent 3d3fd2f2bf
commit 3f44808332
2 changed files with 99 additions and 10 deletions
@@ -72,6 +72,8 @@
'bugs',
'authority',
]"
:chat-labels="currentChat.labels"
:conversation-id="currentChat.id"
/>
</ul>
<div
@@ -303,6 +305,7 @@ export default {
mounted() {
this.addScrollListener();
this.fetchAllAttachmentsFromCurrentChat();
this.fetchIntegrations();
},
beforeDestroy() {
@@ -314,6 +317,11 @@ export default {
fetchAllAttachmentsFromCurrentChat() {
this.$store.dispatch('fetchAllAttachments', this.currentChat.id);
},
fetchIntegrations() {
if (!this.appIntegrations.length) {
this.$store.dispatch('integrations/get');
}
},
removeBusListeners() {
bus.$off(BUS_EVENTS.SCROLL_TO_MESSAGE, this.onScrollToMessage);
bus.$off(BUS_EVENTS.SET_TWEET_REPLY, this.setSelectedTweet);