mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
[Refactor] Cleanup agent store and actions (#373)
* Cleanup agent store and actions * Move set/create/update/destroy to helpers * Update mutation specs * Add specs for API helper * Fix edit/delete action visibility * Add actions specs * Remove unused API helpers * Remove duplicates * Remove duplicates * Fix duplicate
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
class="tab--chat-type"
|
||||
@chatTabChange="getDataForTab"
|
||||
/>
|
||||
|
||||
|
||||
<p
|
||||
v-if="!chatListLoading && !getChatsForTab(activeStatus).length"
|
||||
class="content-box"
|
||||
@@ -71,7 +71,7 @@ export default {
|
||||
|
||||
this.$store.dispatch('emptyAllConversations');
|
||||
this.fetchData();
|
||||
this.$store.dispatch('fetchAgents');
|
||||
this.$store.dispatch('agents/get');
|
||||
},
|
||||
computed: {
|
||||
...mapGetters({
|
||||
|
||||
Reference in New Issue
Block a user