perf: refs #8339 removew preview tag

This commit is contained in:
Javier Segarra 2025-01-24 08:09:14 +01:00
parent 5bb165757a
commit 58fd5a8326
10 changed files with 7 additions and 14 deletions

View File

@ -214,7 +214,7 @@ const toCustomerSamples = () => {
<template #custom-buttons> <template #custom-buttons>
<QBtn <QBtn
:disabled="isLoading || !sampleType?.hasPreview" :disabled="isLoading || !sampleType?.hasPreview"
:label="t('Preview')" :label="t('globals.preview')"
:loading="isLoading" :loading="isLoading"
@click.stop="getPreview()" @click.stop="getPreview()"
color="primary" color="primary"
@ -353,7 +353,6 @@ es:
Its only used when sample is sent: Se utiliza únicamente cuando se envía la plantilla Its only used when sample is sent: Se utiliza únicamente cuando se envía la plantilla
To who should the recipient replay?: ¿A quien debería responder el destinatario? To who should the recipient replay?: ¿A quien debería responder el destinatario?
Edit address: Editar dirección Edit address: Editar dirección
Preview: Vista previa
Email cannot be blank: Debes introducir un email Email cannot be blank: Debes introducir un email
Choose a sample: Selecciona una plantilla Choose a sample: Selecciona una plantilla
Choose a company: Selecciona una empresa Choose a company: Selecciona una empresa

View File

@ -497,5 +497,4 @@ es:
New item: Nuevo artículo New item: Nuevo artículo
Create Item: Crear artículo Create Item: Crear artículo
You can search by id: Puedes buscar por id You can search by id: Puedes buscar por id
Preview: Vista previa
</i18n> </i18n>

View File

@ -290,7 +290,7 @@ const columns = computed(() => [
}, },
}, },
{ {
title: t('salesTicketsTable.preview'), title: t('globals.preview'),
icon: 'preview', icon: 'preview',
color: 'primary', color: 'primary',
action: (row) => viewSummary(row.id, TicketSummary), action: (row) => viewSummary(row.id, TicketSummary),

View File

@ -33,7 +33,6 @@ salesTicketsTable:
isFragile: Is fragile isFragile: Is fragile
zone: Zone zone: Zone
goToLines: Go to lines goToLines: Go to lines
preview: Preview
total: Total total: Total
preparation: H.Prep preparation: H.Prep
payMethod: Pay method payMethod: Pay method

View File

@ -142,7 +142,7 @@ const total = computed(() => {
const openDmsUploadDialog = async () => { const openDmsUploadDialog = async () => {
dmsDialog.value.rowsToCreateInvoiceIn = selectedRows.value dmsDialog.value.rowsToCreateInvoiceIn = selectedRows.value
.filter( .filter(
(agencyTerm) => agencyTerm.supplierFk === selectedRows.value?.[0].supplierFk (agencyTerm) => agencyTerm.supplierFk === selectedRows.value?.[0].supplierFk,
) )
.map((agencyTerm) => ({ .map((agencyTerm) => ({
routeFk: agencyTerm.routeFk, routeFk: agencyTerm.routeFk,
@ -277,5 +277,4 @@ es:
Price: Precio Price: Precio
Received: Recibida Received: Recibida
Autonomous: Autónomos Autonomous: Autónomos
Preview: Vista previa
</i18n> </i18n>

View File

@ -112,7 +112,7 @@ const removeSelection = async () => {
await Promise.all( await Promise.all(
selectedRows.value.map((roadmap) => { selectedRows.value.map((roadmap) => {
axios.delete(`Roadmaps/${roadmap.id}`); axios.delete(`Roadmaps/${roadmap.id}`);
}) }),
); );
}; };
@ -236,6 +236,5 @@ es:
Plate: Matrícula Plate: Matrícula
Price: Precio Price: Precio
Observations: Observaciones Observations: Observaciones
Preview: Vista previa
Select the estimated date of departure (ETD): Selecciona la fecha estimada de salida Select the estimated date of departure (ETD): Selecciona la fecha estimada de salida
</i18n> </i18n>

View File

@ -33,7 +33,6 @@ route:
Mark as served: Mark as served Mark as served: Mark as served
Download selected routes as PDF: Download selected routes as PDF Download selected routes as PDF: Download selected routes as PDF
Add ticket: Add ticket Add ticket: Add ticket
Preview: Preview
Summary: Summary Summary: Summary
Route is closed: Route is closed Route is closed: Route is closed
Route is not served: Route is not served Route is not served: Route is not served

View File

@ -33,7 +33,7 @@ route:
Mark as served: Marcar como servidas Mark as served: Marcar como servidas
Download selected routes as PDF: Descargar rutas seleccionadas como PDF Download selected routes as PDF: Descargar rutas seleccionadas como PDF
Add ticket: Añadir tickets Add ticket: Añadir tickets
Preview: Vista previa preview: Vista previa
Summary: Resumen Summary: Resumen
Route is closed: La ruta está cerrada Route is closed: La ruta está cerrada
Route is not served: La ruta no está servida Route is not served: La ruta no está servida

View File

@ -90,7 +90,7 @@ const redirectToZoneSummary = (id) => {
color="primary" color="primary"
@click.stop="viewSummary(props.row.id, ZoneSummary)" @click.stop="viewSummary(props.row.id, ZoneSummary)"
> >
<QTooltip>{{ t('zoneClosingTable.preview') }}</QTooltip> <QTooltip>{{ t('globals.preview') }}</QTooltip>
</QIcon> </QIcon>
</div> </div>
</QTd> </QTd>

View File

@ -50,8 +50,7 @@ deliveryPanel:
postcode: Postcode postcode: Postcode
query: Query query: Query
noEventsWarning: No service for the specified zone noEventsWarning: No service for the specified zone
zoneClosingTable:
preview: Preview
warehouses: warehouses:
deleteTitle: This item will be deleted deleteTitle: This item will be deleted
deleteSubtitle: Are you sure you want to continue? deleteSubtitle: Are you sure you want to continue?