From e859fc29c858477659aeab175445a8987ec6327c Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 26 Feb 2024 08:33:17 +0100 Subject: [PATCH 1/2] refs #6935 feat: remove width, add text-align and label : --- src/components/ui/CardDescriptor.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue index 241937a4e..345c8d088 100644 --- a/src/components/ui/CardDescriptor.vue +++ b/src/components/ui/CardDescriptor.vue @@ -188,16 +188,18 @@ const emit = defineEmits(['onFetch']); .label { color: var(--vn-label); font-size: 12px; - width: 47%; + ::after { + content: ':'; + } } .value { color: var(--vn-text); font-size: 14px; margin-left: 12px; - width: 47%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; + text-align: left; } .info { margin-left: 5px; From d3d73b985e724def3d7b1735127920ea0a7c7ccb Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 26 Feb 2024 09:16:37 +0100 Subject: [PATCH 2/2] refs #6336 fix(claimSummary): loadPhoto, ItemDescriptor --- src/pages/Claim/Card/ClaimSummary.vue | 17 ++++++++++++----- src/pages/Item/Card/ItemDescriptor.vue | 20 ++++++++++++++++++-- src/pages/Item/Card/ItemDescriptorProxy.vue | 5 +++++ 3 files changed, 35 insertions(+), 7 deletions(-) diff --git a/src/pages/Claim/Card/ClaimSummary.vue b/src/pages/Claim/Card/ClaimSummary.vue index cdc1f15be..b93cbbd81 100644 --- a/src/pages/Claim/Card/ClaimSummary.vue +++ b/src/pages/Claim/Card/ClaimSummary.vue @@ -35,7 +35,6 @@ const claimDmsFilter = ref({ relation: 'dms', }, ], - where: { claimFk: entityId.value }, }); onMounted(async () => { @@ -141,6 +140,11 @@ const claimDms = ref([]); const multimediaDialog = ref(); const multimediaSlide = ref(); +async function getClaimDms() { + claimDmsFilter.value.where = { claimFk: entityId.value }; + await claimDmsRef.value.fetch(); +} + function setClaimDms(data) { claimDms.value = []; data.forEach((media) => { @@ -163,10 +167,13 @@ function openDialog(dmsId) { url="ClaimDms" :filter="claimDmsFilter" @on-fetch="(data) => setClaimDms(data)" - limit="20" ref="claimDmsRef" /> - + @@ -252,7 +259,8 @@ function openDialog(dmsId) { > @@ -274,7 +282,6 @@ function openDialog(dmsId) { - {{ t('claim.summary.photos') }} diff --git a/src/pages/Item/Card/ItemDescriptor.vue b/src/pages/Item/Card/ItemDescriptor.vue index 362fcfc67..8c986e627 100644 --- a/src/pages/Item/Card/ItemDescriptor.vue +++ b/src/pages/Item/Card/ItemDescriptor.vue @@ -1,5 +1,5 @@ @@ -21,6 +25,7 @@ const $props = defineProps({ :id="$props.id" :summary="ItemSummary" :dated="dated" + :sale-fk="saleFk" />