chore: Replace Thumbnail with Avatar (#12119)

This commit is contained in:
Sivin Varghese
2025-08-11 15:47:17 +05:30
committed by GitHub
parent fcc6e2b8b2
commit d908c880d2
38 changed files with 297 additions and 657 deletions

View File

@@ -1,6 +1,6 @@
<script>
import { useMessageFormatter } from 'shared/composables/useMessageFormatter';
import Thumbnail from 'dashboard/components/widgets/Thumbnail.vue';
import Avatar from 'dashboard/components-next/avatar/Avatar.vue';
import configMixin from '../mixins/configMixin';
import { isEmptyObject } from 'widget/helpers/utils';
import {
@@ -11,7 +11,7 @@ import { emitter } from 'shared/helpers/mitt';
export default {
name: 'UnreadMessage',
components: { Thumbnail },
components: { Avatar },
mixins: [configMixin],
props: {
message: {
@@ -95,11 +95,12 @@ export default {
<div class="chat-bubble-wrap">
<button class="chat-bubble agent bg-white" @click="onClickMessage">
<div v-if="showSender" class="row--agent-block">
<Thumbnail
<Avatar
:src="avatarUrl"
size="20px"
:username="agentName"
:size="20"
:name="agentName"
:status="availabilityStatus"
rounded-full
/>
<span v-dompurify-html="agentName" class="agent--name" />
<span v-dompurify-html="companyName" class="company--name" />