fix: Add background to inbox channel badges (#3152)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Nithin David Thomas
2021-10-06 19:34:34 +05:30
committed by GitHub
parent 219a8c4bc5
commit ec9903ae82
20 changed files with 48 additions and 67 deletions

View File

@@ -11,7 +11,7 @@
<thumbnail
v-if="!hideThumbnail"
:src="currentContact.thumbnail"
:badge="chatBadge"
:badge="inboxBadge"
class="columns"
:username="currentContact.name"
:status="currentContact.availability_status"
@@ -21,7 +21,7 @@
<div class="conversation--metadata">
<inbox-name v-if="showInboxName" :inbox="inbox" />
<span
v-if="showAssignee && assignee"
v-if="showAssignee && assignee.name"
class="label assignee-label text-truncate"
>
<i class="ion-person" />
@@ -119,10 +119,6 @@ export default {
accountId: 'getCurrentAccountId',
}),
chatExtraAttributes() {
return this.chat.additional_attributes;
},
chatMetadata() {
return this.chat.meta || {};
},
@@ -131,14 +127,6 @@ export default {
return this.chatMetadata.assignee || {};
},
chatBadge() {
if(this.chatExtraAttributes['type']){
return this.chatExtraAttributes['type']
} else {
return this.chatMetadata.channel
}
},
currentContact() {
return this.$store.getters['contacts/getContact'](
this.chatMetadata.sender.id