From b6fedd3873afb15774cbc4434a492c98f7cac77d Mon Sep 17 00:00:00 2001 From: alexandre Date: Mon, 17 Apr 2023 12:18:37 +0200 Subject: [PATCH] refs #5293 sections in a array --- src/pages/Claim/Card/ClaimCard.vue | 45 +++++++----------------------- 1 file changed, 10 insertions(+), 35 deletions(-) diff --git a/src/pages/Claim/Card/ClaimCard.vue b/src/pages/Claim/Card/ClaimCard.vue index 705520e24..fe56c58dd 100644 --- a/src/pages/Claim/Card/ClaimCard.vue +++ b/src/pages/Claim/Card/ClaimCard.vue @@ -21,6 +21,12 @@ const $props = defineProps({ const entityId = computed(() => { return $props.id || route.params.id; }); +const claimSections = [ + { name: 'Details', url: '/detail' }, + { name: 'Notes', url: '/note/index' }, + { name: 'Development', url: '/development' }, + { name: 'Action', url: '/action' }, +]; let salixUrl; onMounted(async () => { @@ -48,48 +54,17 @@ function openNewTab(url) { - {{ t('Details') }} - - - - - - {{ t('Notes') }} - - - - - - {{ t('Development') }} - - - - - - {{ t('Action') }} + {{ t(section.name) }}