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
comment: Comment
observations: Observations
goToModuleIndex: Go to module index
errors:
statusUnauthorized: Access denied
statusInternalServerError: An internal server error has ocurred

View File

@ -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

View File

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

View File

@ -73,7 +73,7 @@ onMounted(async () => {
:to="{ name: 'ClaimList' }"
>
<QTooltip>
{{ t('Go to module index') }}
{{ t('globals.goToModuleIndex') }}
</QTooltip>
</QBtn>
</template>
@ -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
</i18n>

View File

@ -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"
>
<template #menu="{ entity }">
<QItem v-ripple clickable @click="showEntryReport(entity)">

View File

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

View File

@ -99,7 +99,7 @@ const total = ref(null);
:to="{ name: 'OrderList' }"
>
<QTooltip>
{{ t('Go to module index') }}
{{ t('globals.goToModuleIndex') }}
</QTooltip>
</QBtn>
</template>
@ -153,8 +153,3 @@ const total = ref(null);
</template>
</CardDescriptor>
</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,
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"
>
<template #body="{ entity }">
<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' }"
>
<QTooltip>
{{ t('Go to module index') }}
{{ t('globals.goToModuleIndex') }}
</QTooltip>
</QBtn>
</template>
@ -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
</i18n>

View File

@ -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"
>
<template #header-extra-action>
<QBtn
@ -69,7 +65,7 @@ const setData = (entity) => (data.value = useCardDescription(entity.code, entity
:to="{ name: 'ShelvingList' }"
>
<QTooltip>
{{ t('Go to module index') }}
{{ t('globals.goToModuleIndex') }}
</QTooltip>
</QBtn>
</template>
@ -90,8 +86,3 @@ const setData = (entity) => (data.value = useCardDescription(entity.code, entity
</template>
</CardDescriptor>
</template>
<i18n>
es:
Go to module index: Ir al indice del modulo
</i18n>

View File

@ -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"
>
<template #menu="{ entity }">
<TicketDescriptorMenu :ticket="entity" />

View File

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

View File

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

View File

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