chore: Hide inbox name only has one inbox (#6115)

This commit is contained in:
Sivin Varghese
2022-12-21 13:31:53 +05:30
committed by Pranav Raj S
parent 56b1388339
commit 38f9c3940b

View File

@@ -21,7 +21,11 @@
/>
</h3>
<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
v-if="isSnoozed"
class="snoozed--display-text margin-right-small"
@@ -145,6 +149,9 @@ export default {
const { inbox_id: inboxId } = this.chat;
return this.$store.getters['inboxes/getInbox'](inboxId);
},
hasMultipleInboxes() {
return this.$store.getters['inboxes/getInboxes'].length > 1;
},
},
methods: {