fix: Show inbox name only if more > 1 inbox present (#2004)

This commit is contained in:
Pranav Raj S 2021-03-29 11:09:06 +05:30 committed by GitHub
parent bbf74f218f
commit 1ce36539aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@
size="40px"
/>
<div class="conversation--details columns">
<span v-if="showInboxName" v-tooltip.bottom="inboxName" class="label">
<span v-if="showInboxName" class="label">
<i :class="computedInboxClass" />
{{ inboxName }}
</span>
@ -161,7 +161,11 @@ export default {
},
showInboxName() {
return !this.hideInboxName && this.isInboxNameVisible;
return (
!this.hideInboxName &&
this.isInboxNameVisible &&
this.inboxesList.length > 1
);
},
inboxName() {
const stateInbox = this.chatInbox;