From 5462d3ce9a823b28682863fca9afd64689242813 Mon Sep 17 00:00:00 2001 From: carlossa Date: Mon, 5 Feb 2024 09:57:09 +0100 Subject: [PATCH 01/22] refs #6787 isLoading --- src/pages/Customer/Card/CustomerDescriptor.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/pages/Customer/Card/CustomerDescriptor.vue b/src/pages/Customer/Card/CustomerDescriptor.vue index 222406d8a..833a310ad 100644 --- a/src/pages/Customer/Card/CustomerDescriptor.vue +++ b/src/pages/Customer/Card/CustomerDescriptor.vue @@ -19,16 +19,17 @@ const $props = defineProps({ default: null, }, }); - +const isLoading = ref(false); const route = useRoute(); const { t } = useI18n(); - const entityId = computed(() => { return $props.id || route.params.id; }); +isLoading.value = true; const data = ref(useCardDescription()); const setData = (entity) => (data.value = useCardDescription(entity.name, entity.id)); +isLoading.value = false; + { From 760b2d5574a621a44a2532cbe418c47738f63917 Mon Sep 17 00:00:00 2001 From: carlossa Date: Mon, 5 Feb 2024 10:30:23 +0100 Subject: [PATCH 02/22] refs #6787 isLoading CardDescriptor --- src/components/ui/CardDescriptor.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue index 8f6ffa35d..afedfe06f 100644 --- a/src/components/ui/CardDescriptor.vue +++ b/src/components/ui/CardDescriptor.vue @@ -1,5 +1,5 @@ diff --git a/src/pages/Claim/Card/ClaimNotes.vue b/src/pages/Claim/Card/ClaimNotes.vue index eeaffc85a..ed4c2040d 100644 --- a/src/pages/Claim/Card/ClaimNotes.vue +++ b/src/pages/Claim/Card/ClaimNotes.vue @@ -19,6 +19,12 @@ const claimFilter = { relation: 'worker', scope: { fields: ['id', 'firstName', 'lastName'], + include: { + relation: 'user', + scope: { + fields: ['id', 'nickname'], + }, + }, }, }, }; @@ -30,7 +36,8 @@ const body = { + + + + + - + {{ t('claim.summary.notes') }} @@ -248,6 +261,7 @@ function openDialog(dmsId) { + {{ t('claim.summary.photos') }} @@ -291,7 +305,7 @@ function openDialog(dmsId) { - + {{ t('claim.summary.actions') }} diff --git a/src/pages/Claim/ClaimList.vue b/src/pages/Claim/ClaimList.vue index 8c28b7a6a..945543822 100644 --- a/src/pages/Claim/ClaimList.vue +++ b/src/pages/Claim/ClaimList.vue @@ -118,12 +118,6 @@ function viewSummary(id) { - +