|
|
@@ -27,11 +27,11 @@
|
|
|
<div class="row no-wrap items-start q-gutter-x-sm">
|
|
|
<q-avatar size="44px">
|
|
|
<img v-if="item.customer_photo" :src="item.customer_photo" style="object-fit:cover" />
|
|
|
- <span v-else class="full-width full-height flex flex-center" :style="avatarColors[item.id % avatarColors.length]" style="border-radius:50%">{{ item.client_name?.slice(0,2).toUpperCase() ?? '??' }}</span>
|
|
|
+ <span v-else class="full-width full-height flex flex-center" :style="avatarColors[item.id % avatarColors.length]" style="border-radius:50%">{{ getFirstName(item.client_name)?.slice(0, 2).toUpperCase() ?? '??' }}</span>
|
|
|
</q-avatar>
|
|
|
|
|
|
<div class="col column text-text">
|
|
|
- <span class="font12 fontmedium ellipsis">{{ item.client_name }}</span>
|
|
|
+ <span class="font12 fontmedium ellipsis">{{ getFirstName(item.client_name) }}</span>
|
|
|
<div class="row items-center no-wrap">
|
|
|
<span class="font9 fontbold">{{ formatWeekday(item.date) }}</span>
|
|
|
<span class="font9 fontmedium">{{ ', ' + formatDayMonth(item.date) }}</span>
|
|
|
@@ -96,11 +96,11 @@
|
|
|
<div class="row no-wrap items-start q-gutter-x-sm">
|
|
|
<q-avatar size="44px">
|
|
|
<img v-if="item.customer_photo" :src="item.customer_photo" style="object-fit:cover" />
|
|
|
- <span v-else class="full-width full-height flex flex-center" :style="avatarColors[item.id % avatarColors.length]" style="border-radius:50%">{{ item.client_name?.slice(0,2).toUpperCase() ?? '??' }}</span>
|
|
|
+ <span v-else class="full-width full-height flex flex-center" :style="avatarColors[item.id % avatarColors.length]" style="border-radius:50%">{{ getFirstName(item.client_name)?.slice(0, 2).toUpperCase() ?? '??' }}</span>
|
|
|
</q-avatar>
|
|
|
|
|
|
<div class="col column text-text">
|
|
|
- <span class="font12 fontmedium ellipsis">{{ item.client_name }}</span>
|
|
|
+ <span class="font12 fontmedium ellipsis"> {{ getFirstName(item.client_name) || '—' }}</span>
|
|
|
<div class="row items-center no-wrap">
|
|
|
<span class="font9 fontbold">{{ formatWeekday(item.date) }}</span>
|
|
|
<span class="font9 fontmedium">{{ ', ' + formatDayMonth(item.date) }}</span>
|
|
|
@@ -172,7 +172,7 @@ import { ref, onMounted } from 'vue';
|
|
|
import { useQuasar } from 'quasar';
|
|
|
import { useI18n } from 'vue-i18n';
|
|
|
import { getProviderCalendar } from 'src/api/providerCalendar';
|
|
|
-import { formatCurrency } from 'src/helpers/utils';
|
|
|
+import { formatCurrency, getFirstName } from 'src/helpers/utils';
|
|
|
import { labelsPeriodTypes } from 'src/helpers/arraysOptions/labelsPeriodTypes.js';
|
|
|
import NextSchedulesDetailsDialog from 'src/components/dashboard/NextSchedulesDetailsDialog.vue';
|
|
|
import ScheduleRatingDialog from 'src/components/dashboard/ScheduleRatingDialog.vue';
|