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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 48 additions and 67 deletions

View file

@ -4,7 +4,7 @@
<Thumbnail
:src="currentContact.thumbnail"
size="40px"
:badge="chatBadge"
:badge="inboxBadge"
:username="currentContact.name"
:status="currentContact.availability_status"
/>
@ -74,22 +74,10 @@ export default {
currentChat: 'getSelectedChat',
}),
chatExtraAttributes() {
return this.chat.additional_attributes;
},
chatMetadata() {
return this.chat.meta;
},
chatBadge() {
if(this.chatExtraAttributes['type']){
return this.chatExtraAttributes['type']
} else {
return this.chatMetadata.channel
}
},
currentContact() {
return this.$store.getters['contacts/getContact'](
this.chat.meta.sender.id