From 1ce36539aa37839a772dc11debf6f0841929e790 Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Mon, 29 Mar 2021 11:09:06 +0530 Subject: [PATCH] fix: Show inbox name only if more > 1 inbox present (#2004) --- .../components/widgets/conversation/ConversationCard.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/ConversationCard.vue b/app/javascript/dashboard/components/widgets/conversation/ConversationCard.vue index bfea8c86c..003784afb 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ConversationCard.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ConversationCard.vue @@ -18,7 +18,7 @@ size="40px" />
- + {{ inboxName }} @@ -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;