fix: Add background to inbox channel badges (#3152)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
parent
219a8c4bc5
commit
ec9903ae82
20 changed files with 48 additions and 67 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue