From 452d1000bc6d37118b32d08392e4ba172222d2c5 Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 26 Jun 2024 14:28:21 +0200 Subject: [PATCH] refactor: refs #7543 requested changes --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + src/pages/Agency/Card/AgencyDescriptor.vue | 7 +------ src/pages/Claim/Card/ClaimDescriptor.vue | 3 +-- src/pages/Entry/Card/EntryDescriptor.vue | 6 +----- src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue | 6 +----- src/pages/Order/Card/OrderDescriptor.vue | 7 +------ src/pages/Route/Card/RouteDescriptor.vue | 6 +----- src/pages/Route/Roadmap/RoadmapDescriptor.vue | 3 +-- src/pages/Shelving/Card/ShelvingDescriptor.vue | 13 ++----------- src/pages/Ticket/Card/TicketDescriptor.vue | 6 +----- src/pages/Travel/Card/TravelDescriptor.vue | 6 +----- src/pages/Worker/Card/WorkerDescriptor.vue | 7 +------ src/pages/Zone/Card/ZoneDescriptor.vue | 6 +----- 14 files changed, 15 insertions(+), 63 deletions(-) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index f8850d396..b18c396c0 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -114,6 +114,7 @@ globals: new: New comment: Comment observations: Observations + goToModuleIndex: Go to module index errors: statusUnauthorized: Access denied statusInternalServerError: An internal server error has ocurred diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index e5924f93b..e0c563f07 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -115,6 +115,7 @@ globals: new: Nuevo comment: Comentario observations: Observaciones + goToModuleIndex: Ir al índice del módulo errors: statusUnauthorized: Acceso denegado statusInternalServerError: Ha ocurrido un error interno del servidor diff --git a/src/pages/Agency/Card/AgencyDescriptor.vue b/src/pages/Agency/Card/AgencyDescriptor.vue index 8b6a6603e..46b225ff2 100644 --- a/src/pages/Agency/Card/AgencyDescriptor.vue +++ b/src/pages/Agency/Card/AgencyDescriptor.vue @@ -40,7 +40,7 @@ const card = computed(() => store.data); :to="{ name: 'RouteList' }" > - {{ t('Go to module index') }} + {{ t('globals.goToModuleIndex') }} @@ -49,8 +49,3 @@ const card = computed(() => store.data); - - -es: - Go to module index: Ir al índice del modulo - diff --git a/src/pages/Claim/Card/ClaimDescriptor.vue b/src/pages/Claim/Card/ClaimDescriptor.vue index e4b96b5b6..9b25aa2d9 100644 --- a/src/pages/Claim/Card/ClaimDescriptor.vue +++ b/src/pages/Claim/Card/ClaimDescriptor.vue @@ -73,7 +73,7 @@ onMounted(async () => { :to="{ name: 'ClaimList' }" > - {{ t('Go to module index') }} + {{ t('globals.goToModuleIndex') }} @@ -187,5 +187,4 @@ onMounted(async () => { claimRate: Claming rate es: claimRate: Ratio de reclamación - Go to module index: Ir al índice del módulo diff --git a/src/pages/Entry/Card/EntryDescriptor.vue b/src/pages/Entry/Card/EntryDescriptor.vue index 317400181..a55ad67cd 100644 --- a/src/pages/Entry/Card/EntryDescriptor.vue +++ b/src/pages/Entry/Card/EntryDescriptor.vue @@ -18,10 +18,6 @@ const $props = defineProps({ required: false, default: null, }, - summary: { - type: Object, - default: null, - }, }); const route = useRoute(); @@ -119,7 +115,7 @@ watch; :subtitle="data.subtitle" @on-fetch="setData" data-key="entry" - :summary="$props.summary" + :summary="$attrs" > - - -es: - Go to module index: Ir al índice del módulo - diff --git a/src/pages/Route/Card/RouteDescriptor.vue b/src/pages/Route/Card/RouteDescriptor.vue index a0e0aaf3a..2fa0e77e0 100644 --- a/src/pages/Route/Card/RouteDescriptor.vue +++ b/src/pages/Route/Card/RouteDescriptor.vue @@ -14,10 +14,6 @@ const $props = defineProps({ required: false, default: null, }, - summary: { - type: Object, - default: null, - }, }); const route = useRoute(); @@ -80,7 +76,7 @@ const setData = (entity) => (data.value = useCardDescription(entity.code, entity :subtitle="data.subtitle" data-key="routeData" @on-fetch="setData" - :summary="$props.summary" + :summary="$attrs" > @@ -76,5 +76,4 @@ const setData = (entity) => (data.value = useCardDescription(entity.code, entity es: Roadmap: Troncal Carrier: Transportista - Go to module index: Ir al índice del módulo diff --git a/src/pages/Shelving/Card/ShelvingDescriptor.vue b/src/pages/Shelving/Card/ShelvingDescriptor.vue index 0fac92f65..9322faaa0 100644 --- a/src/pages/Shelving/Card/ShelvingDescriptor.vue +++ b/src/pages/Shelving/Card/ShelvingDescriptor.vue @@ -14,10 +14,6 @@ const $props = defineProps({ required: false, default: null, }, - summary: { - type: Object, - default: null, - }, }); const route = useRoute(); @@ -55,7 +51,7 @@ const setData = (entity) => (data.value = useCardDescription(entity.code, entity :subtitle="data.subtitle" data-key="Shelvings" @on-fetch="setData" - :summary="$props.summary" + :summary="$attrs" > @@ -90,8 +86,3 @@ const setData = (entity) => (data.value = useCardDescription(entity.code, entity - - -es: - Go to module index: Ir al indice del modulo - diff --git a/src/pages/Ticket/Card/TicketDescriptor.vue b/src/pages/Ticket/Card/TicketDescriptor.vue index 3c5e6c80d..ab95ee643 100644 --- a/src/pages/Ticket/Card/TicketDescriptor.vue +++ b/src/pages/Ticket/Card/TicketDescriptor.vue @@ -16,10 +16,6 @@ const $props = defineProps({ required: false, default: null, }, - summary: { - type: Object, - default: null, - }, }); const route = useRoute(); @@ -87,7 +83,7 @@ const setData = (entity) => :subtitle="data.subtitle" data-key="ticketData" @on-fetch="setData" - :summary="$props.summary" + :summary="$attrs" >