From 0114de4db55d935d40d5a420516807bce1bed787 Mon Sep 17 00:00:00 2001 From: pablone Date: Fri, 24 Nov 2023 09:41:57 +0100 Subject: [PATCH 1/3] feat(preview): refs #6475 add preview icon on descriptor --- src/components/ui/CardDescriptor.vue | 53 +++++++++++-------- .../Customer/Card/CustomerDescriptorProxy.vue | 2 +- 2 files changed, 33 insertions(+), 22 deletions(-) diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue index f63b75de6..cfba0dfe1 100644 --- a/src/components/ui/CardDescriptor.vue +++ b/src/components/ui/CardDescriptor.vue @@ -1,9 +1,10 @@ diff --git a/src/pages/Customer/Card/CustomerDescriptor.vue b/src/pages/Customer/Card/CustomerDescriptor.vue index 23e6228ee..4a793404d 100644 --- a/src/pages/Customer/Card/CustomerDescriptor.vue +++ b/src/pages/Customer/Card/CustomerDescriptor.vue @@ -14,6 +14,10 @@ const $props = defineProps({ required: false, default: null, }, + summary: { + type: Object, + default: null, + }, }); const route = useRoute(); @@ -34,6 +38,7 @@ const setData = (entity) => (data.value = useCardDescription(entity.name, entity :title="data.title" :subtitle="data.subtitle" @on-fetch="setData" + :summary="$props.summary" >