diff --git a/src/components/ui/VnAvatar.vue b/src/components/ui/VnAvatar.vue index 3beb844f7..05b161980 100644 --- a/src/components/ui/VnAvatar.vue +++ b/src/components/ui/VnAvatar.vue @@ -8,18 +8,18 @@ import { getCssVar } from 'quasar'; const $props = defineProps({ workerId: { type: Number, required: true }, description: { type: String, default: null }, - title: { type: [String, Boolean], default: null }, + title: { type: [String], default: null }, color: { type: String, default: null }, }); + const { getTokenMultimedia } = useSession(); const token = getTokenMultimedia(); const { t } = useI18n(); + const src = computed( () => `/api/Images/user/160x160/${$props.workerId}/download?access_token=${token}` ); -const title = computed(() => - $props.title !== false ? $props.title || t('globals.system') : false -); +const title = computed(() => $props.title?.toUpperCase() || t('globals.system')); const showLetter = ref(false); const backgroundColor = computed(() => { const color = $props.color || useColor(title.value); @@ -33,9 +33,9 @@ watch(src, () => (showLetter.value = false)); - diff --git a/src/pages/Customer/Card/CustomerBasicData.vue b/src/pages/Customer/Card/CustomerBasicData.vue index 7ef345f7a..87a3b08f7 100644 --- a/src/pages/Customer/Card/CustomerBasicData.vue +++ b/src/pages/Customer/Card/CustomerBasicData.vue @@ -15,6 +15,7 @@ const { t } = useI18n(); const businessTypes = ref([]); const contactChannels = ref([]); +const title = ref();