feat: conversation participants (#4145)

Fixes #241
Fixes: chatwoot/product#648

Co-authored-by: Aswin Dev P.S <aswindevps@gmail.com>
Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com>
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Sojan Jose
2023-02-16 13:35:06 +05:30
committed by GitHub
parent 7be2ef3292
commit ca1adb9960
26 changed files with 486 additions and 122 deletions

View File

@@ -42,10 +42,7 @@
>
{{ option.name }}
</span>
<fluent-icon
v-if="option.id === (selectedItem && selectedItem.id)"
icon="checkmark"
/>
<fluent-icon v-if="isActive(option)" icon="checkmark" />
</div>
</div>
</woot-button>
@@ -76,9 +73,9 @@ export default {
type: Array,
default: () => [],
},
selectedItem: {
type: Object,
default: () => ({}),
selectedItems: {
type: Array,
default: () => [],
},
hasThumbnail: {
type: Boolean,
@@ -123,7 +120,7 @@ export default {
this.$refs.searchbar.focus();
},
isActive(option) {
return this.selectedItem ? option.id === this.selectedItem.id : false;
return this.selectedItems.some(item => item && option.id === item.id);
},
},
};
@@ -198,6 +195,7 @@ export default {
.name-wrap {
display: flex;
justify-content: space-between;
align-items: center;
min-width: 0;
width: 100%;
align-items: center;