mirror of
https://github.com/lingble/chatwoot.git
synced 2025-12-11 15:25:16 +00:00
chore: Hide inbox name only has one inbox (#6115)
This commit is contained in:
@@ -21,7 +21,11 @@
|
|||||||
/>
|
/>
|
||||||
</h3>
|
</h3>
|
||||||
<div class="conversation--header--actions">
|
<div class="conversation--header--actions">
|
||||||
<inbox-name :inbox="inbox" class="margin-right-small" />
|
<inbox-name
|
||||||
|
v-if="hasMultipleInboxes"
|
||||||
|
:inbox="inbox"
|
||||||
|
class="margin-right-small"
|
||||||
|
/>
|
||||||
<span
|
<span
|
||||||
v-if="isSnoozed"
|
v-if="isSnoozed"
|
||||||
class="snoozed--display-text margin-right-small"
|
class="snoozed--display-text margin-right-small"
|
||||||
@@ -145,6 +149,9 @@ export default {
|
|||||||
const { inbox_id: inboxId } = this.chat;
|
const { inbox_id: inboxId } = this.chat;
|
||||||
return this.$store.getters['inboxes/getInbox'](inboxId);
|
return this.$store.getters['inboxes/getInbox'](inboxId);
|
||||||
},
|
},
|
||||||
|
hasMultipleInboxes() {
|
||||||
|
return this.$store.getters['inboxes/getInboxes'].length > 1;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user