0
0
Fork 0

refactor: refs #7543 requested changes

This commit is contained in:
Jon Elias 2024-06-26 14:28:21 +02:00
parent 677e71d1a7
commit 452d1000bc
14 changed files with 15 additions and 63 deletions

View File

@ -114,6 +114,7 @@ globals:
new: New new: New
comment: Comment comment: Comment
observations: Observations observations: Observations
goToModuleIndex: Go to module index
errors: errors:
statusUnauthorized: Access denied statusUnauthorized: Access denied
statusInternalServerError: An internal server error has ocurred statusInternalServerError: An internal server error has ocurred

View File

@ -115,6 +115,7 @@ globals:
new: Nuevo new: Nuevo
comment: Comentario comment: Comentario
observations: Observaciones observations: Observaciones
goToModuleIndex: Ir al índice del módulo
errors: errors:
statusUnauthorized: Acceso denegado statusUnauthorized: Acceso denegado
statusInternalServerError: Ha ocurrido un error interno del servidor statusInternalServerError: Ha ocurrido un error interno del servidor

View File

@ -40,7 +40,7 @@ const card = computed(() => store.data);
:to="{ name: 'RouteList' }" :to="{ name: 'RouteList' }"
> >
<QTooltip> <QTooltip>
{{ t('Go to module index') }} {{ t('globals.goToModuleIndex') }}
</QTooltip> </QTooltip>
</QBtn> </QBtn>
</template> </template>
@ -49,8 +49,3 @@ const card = computed(() => store.data);
</template> </template>
</CardDescriptor> </CardDescriptor>
</template> </template>
<i18n>
es:
Go to module index: Ir al índice del modulo
</i18n>

View File

@ -73,7 +73,7 @@ onMounted(async () => {
:to="{ name: 'ClaimList' }" :to="{ name: 'ClaimList' }"
> >
<QTooltip> <QTooltip>
{{ t('Go to module index') }} {{ t('globals.goToModuleIndex') }}
</QTooltip> </QTooltip>
</QBtn> </QBtn>
</template> </template>
@ -187,5 +187,4 @@ onMounted(async () => {
claimRate: Claming rate claimRate: Claming rate
es: es:
claimRate: Ratio de reclamación claimRate: Ratio de reclamación
Go to module index: Ir al índice del módulo
</i18n> </i18n>

View File

@ -18,10 +18,6 @@ const $props = defineProps({
required: false, required: false,
default: null, default: null,
}, },
summary: {
type: Object,
default: null,
},
}); });
const route = useRoute(); const route = useRoute();
@ -119,7 +115,7 @@ watch;
:subtitle="data.subtitle" :subtitle="data.subtitle"
@on-fetch="setData" @on-fetch="setData"
data-key="entry" data-key="entry"
:summary="$props.summary" :summary="$attrs"
> >
<template #menu="{ entity }"> <template #menu="{ entity }">
<QItem v-ripple clickable @click="showEntryReport(entity)"> <QItem v-ripple clickable @click="showEntryReport(entity)">

View File

@ -25,10 +25,6 @@ const $props = defineProps({
type: Number, type: Number,
default: null, default: null,
}, },
summary: {
type: Object,
default: null,
},
}); });
const { push, currentRoute } = useRouter(); const { push, currentRoute } = useRouter();
@ -297,7 +293,7 @@ const setData = (entity) => (data.value = useCardDescription(entity.name, entity
:filter="filter" :filter="filter"
title="supplierRef" title="supplierRef"
@on-fetch="setData" @on-fetch="setData"
:summary="$props.summary" :summary="$attrs"
> >
<template #menu="{ entity }"> <template #menu="{ entity }">
<InvoiceInToBook> <InvoiceInToBook>

View File

@ -99,7 +99,7 @@ const total = ref(null);
:to="{ name: 'OrderList' }" :to="{ name: 'OrderList' }"
> >
<QTooltip> <QTooltip>
{{ t('Go to module index') }} {{ t('globals.goToModuleIndex') }}
</QTooltip> </QTooltip>
</QBtn> </QBtn>
</template> </template>
@ -153,8 +153,3 @@ const total = ref(null);
</template> </template>
</CardDescriptor> </CardDescriptor>
</template> </template>
<i18n>
es:
Go to module index: Ir al índice del módulo
</i18n>

View File

@ -14,10 +14,6 @@ const $props = defineProps({
required: false, required: false,
default: null, default: null,
}, },
summary: {
type: Object,
default: null,
},
}); });
const route = useRoute(); const route = useRoute();
@ -80,7 +76,7 @@ const setData = (entity) => (data.value = useCardDescription(entity.code, entity
:subtitle="data.subtitle" :subtitle="data.subtitle"
data-key="routeData" data-key="routeData"
@on-fetch="setData" @on-fetch="setData"
:summary="$props.summary" :summary="$attrs"
> >
<template #body="{ entity }"> <template #body="{ entity }">
<VnLv :label="t('Date')" :value="toDate(entity?.created)" /> <VnLv :label="t('Date')" :value="toDate(entity?.created)" />

View File

@ -51,7 +51,7 @@ const setData = (entity) => (data.value = useCardDescription(entity.code, entity
:to="{ name: 'RouteList' }" :to="{ name: 'RouteList' }"
> >
<QTooltip> <QTooltip>
{{ t('Go to module index') }} {{ t('globals.goToModuleIndex') }}
</QTooltip> </QTooltip>
</QBtn> </QBtn>
</template> </template>
@ -76,5 +76,4 @@ const setData = (entity) => (data.value = useCardDescription(entity.code, entity
es: es:
Roadmap: Troncal Roadmap: Troncal
Carrier: Transportista Carrier: Transportista
Go to module index: Ir al índice del módulo
</i18n> </i18n>

View File

@ -14,10 +14,6 @@ const $props = defineProps({
required: false, required: false,
default: null, default: null,
}, },
summary: {
type: Object,
default: null,
},
}); });
const route = useRoute(); const route = useRoute();
@ -55,7 +51,7 @@ const setData = (entity) => (data.value = useCardDescription(entity.code, entity
:subtitle="data.subtitle" :subtitle="data.subtitle"
data-key="Shelvings" data-key="Shelvings"
@on-fetch="setData" @on-fetch="setData"
:summary="$props.summary" :summary="$attrs"
> >
<template #header-extra-action> <template #header-extra-action>
<QBtn <QBtn
@ -69,7 +65,7 @@ const setData = (entity) => (data.value = useCardDescription(entity.code, entity
:to="{ name: 'ShelvingList' }" :to="{ name: 'ShelvingList' }"
> >
<QTooltip> <QTooltip>
{{ t('Go to module index') }} {{ t('globals.goToModuleIndex') }}
</QTooltip> </QTooltip>
</QBtn> </QBtn>
</template> </template>
@ -90,8 +86,3 @@ const setData = (entity) => (data.value = useCardDescription(entity.code, entity
</template> </template>
</CardDescriptor> </CardDescriptor>
</template> </template>
<i18n>
es:
Go to module index: Ir al indice del modulo
</i18n>

View File

@ -16,10 +16,6 @@ const $props = defineProps({
required: false, required: false,
default: null, default: null,
}, },
summary: {
type: Object,
default: null,
},
}); });
const route = useRoute(); const route = useRoute();
@ -87,7 +83,7 @@ const setData = (entity) =>
:subtitle="data.subtitle" :subtitle="data.subtitle"
data-key="ticketData" data-key="ticketData"
@on-fetch="setData" @on-fetch="setData"
:summary="$props.summary" :summary="$attrs"
> >
<template #menu="{ entity }"> <template #menu="{ entity }">
<TicketDescriptorMenu :ticket="entity" /> <TicketDescriptorMenu :ticket="entity" />

View File

@ -16,10 +16,6 @@ const $props = defineProps({
required: false, required: false,
default: null, default: null,
}, },
summary: {
type: Object,
default: null,
},
}); });
const route = useRoute(); const route = useRoute();
@ -69,7 +65,7 @@ const setData = (entity) => (data.value = useCardDescription(entity.ref, entity.
:subtitle="data.subtitle" :subtitle="data.subtitle"
:filter="filter" :filter="filter"
data-key="travelData" data-key="travelData"
:summary="$props.summary" :summary="$attrs"
@on-fetch="setData" @on-fetch="setData"
> >
<template #menu="{ entity }"> <template #menu="{ entity }">

View File

@ -17,10 +17,6 @@ const $props = defineProps({
required: false, required: false,
default: null, default: null,
}, },
summary: {
type: Object,
default: null,
},
}); });
const route = useRoute(); const route = useRoute();
@ -115,7 +111,7 @@ const refetch = async () => await cardDescriptorRef.value.getData();
:filter="filter" :filter="filter"
:title="data.title" :title="data.title"
:subtitle="data.subtitle" :subtitle="data.subtitle"
:summary="$props.summary" :summary="$attrs"
@on-fetch=" @on-fetch="
(data) => { (data) => {
worker = data; worker = data;
@ -200,5 +196,4 @@ es:
Click to allow the user to be disabled: Marcar para deshabilitar Click to allow the user to be disabled: Marcar para deshabilitar
Click to exclude the user from getting disabled: Marcar para no deshabilitar Click to exclude the user from getting disabled: Marcar para no deshabilitar
Change password: Cambiar contraseña Change password: Cambiar contraseña
Go to module index: Ir al índice del modulo
</i18n> </i18n>

View File

@ -17,10 +17,6 @@ const $props = defineProps({
required: false, required: false,
default: null, default: null,
}, },
summary: {
type: Object,
default: null,
},
}); });
const route = useRoute(); const route = useRoute();
@ -56,7 +52,7 @@ const setData = (entity) => {
:filter="filter" :filter="filter"
@on-fetch="setData" @on-fetch="setData"
data-key="zoneData" data-key="zoneData"
:summary="$props.summary" :summary="$attrs"
> >
<template #menu="{ entity }"> <template #menu="{ entity }">
<ZoneDescriptorMenuItems :zone="entity" /> <ZoneDescriptorMenuItems :zone="entity" />