From 0f48b6fa4d6e105bdb94aa37a3d313748f805a4e Mon Sep 17 00:00:00 2001 From: jorgep Date: Fri, 15 Nov 2024 11:49:58 +0100 Subject: [PATCH] refactor: refs #6919 drop useless code --- src/pages/Account/Card/AccountDescriptor.vue | 6 +----- src/pages/Claim/Card/ClaimDescriptor.vue | 3 --- src/pages/Customer/Card/CustomerDescriptor.vue | 7 ------- .../Department/Card/DepartmentDescriptor.vue | 18 ------------------ 4 files changed, 1 insertion(+), 33 deletions(-) diff --git a/src/pages/Account/Card/AccountDescriptor.vue b/src/pages/Account/Card/AccountDescriptor.vue index 3156f8e1e..c57d89db9 100644 --- a/src/pages/Account/Card/AccountDescriptor.vue +++ b/src/pages/Account/Card/AccountDescriptor.vue @@ -4,7 +4,6 @@ import { useRoute } from 'vue-router'; import { useI18n } from 'vue-i18n'; import CardDescriptor from 'components/ui/CardDescriptor.vue'; import VnLv from 'src/components/ui/VnLv.vue'; -import useCardDescription from 'src/composables/useCardDescription'; import AccountDescriptorMenu from './AccountDescriptorMenu.vue'; import FetchData from 'src/components/FetchData.vue'; import VnImg from 'src/components/ui/VnImg.vue'; @@ -22,8 +21,6 @@ const { t } = useI18n(); const entityId = computed(() => { return $props.id || route.params.id; }); -const data = ref(useCardDescription()); -const setData = (entity) => (data.value = useCardDescription(entity.nickname, entity.id)); const filter = { where: { id: entityId }, @@ -46,8 +43,7 @@ const hasAccount = ref(false); module="Account" @on-fetch="setData" data-key="AccountId" - :title="data.title" - :subtitle="data.subtitle" + title="nickname" >