From 6f7b83d593e0238ea7f1bf0f1f204d1358b6e45b Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 22 Nov 2024 15:30:43 +0100 Subject: [PATCH] feat(client and ticket): add moreOptions in summary --- src/components/ui/CardDescriptor.vue | 25 +++++---------------- src/components/ui/CardSummary.vue | 12 +++++++--- src/components/ui/VnMoreOptions.vue | 20 +++++++++++++++++ src/pages/Customer/Card/CustomerSummary.vue | 9 +++++--- src/pages/Ticket/Card/TicketSummary.vue | 15 ++++--------- 5 files changed, 45 insertions(+), 36 deletions(-) create mode 100644 src/components/ui/VnMoreOptions.vue diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue index 83af77442..4a79e562a 100644 --- a/src/components/ui/CardDescriptor.vue +++ b/src/components/ui/CardDescriptor.vue @@ -6,6 +6,7 @@ import { useArrayData } from 'composables/useArrayData'; import { useSummaryDialog } from 'src/composables/useSummaryDialog'; import { useState } from 'src/composables/useState'; import { useRoute } from 'vue-router'; +import VnMoreOptions from './VnMoreOptions.vue'; const $props = defineProps({ url: { @@ -159,25 +160,11 @@ const toModule = computed(() => - - - {{ t('components.cardDescriptor.moreOptions') }} - - - - - - - + + +
diff --git a/src/components/ui/CardSummary.vue b/src/components/ui/CardSummary.vue index cf8859a35..4773253a7 100644 --- a/src/components/ui/CardSummary.vue +++ b/src/components/ui/CardSummary.vue @@ -5,6 +5,7 @@ import SkeletonSummary from 'components/ui/SkeletonSummary.vue'; import VnLv from 'src/components/ui/VnLv.vue'; import { useArrayData } from 'src/composables/useArrayData'; import { isDialogOpened } from 'src/filters'; +import VnMoreOptions from './VnMoreOptions.vue'; const props = defineProps({ url: { @@ -83,9 +84,14 @@ async function fetch() { - - - + + + + + +
diff --git a/src/components/ui/VnMoreOptions.vue b/src/components/ui/VnMoreOptions.vue new file mode 100644 index 000000000..75f7c35d6 --- /dev/null +++ b/src/components/ui/VnMoreOptions.vue @@ -0,0 +1,20 @@ + diff --git a/src/pages/Customer/Card/CustomerSummary.vue b/src/pages/Customer/Card/CustomerSummary.vue index 95a162670..d2eb125d7 100644 --- a/src/pages/Customer/Card/CustomerSummary.vue +++ b/src/pages/Customer/Card/CustomerSummary.vue @@ -1,18 +1,18 @@