Merge pull request '#8339 - fix_preview' (!1277) from 8339_fix_preview into dev
gitea/salix-front/pipeline/head This commit looks good Details

Reviewed-on: #1277
Reviewed-by: Jon Elias <jon@verdnatura.es>
This commit is contained in:
Jon Elias 2025-01-24 07:55:19 +00:00
commit 26bc5401f1
14 changed files with 12 additions and 17 deletions

4
.gitignore vendored
View File

@ -29,5 +29,5 @@ yarn-error.log*
*.sln *.sln
# Cypress directories and files # Cypress directories and files
/tests/cypress/videos /test/cypress/videos
/tests/cypress/screenshots /test/cypress/screenshots

View File

@ -41,7 +41,7 @@ const card = toRef(props, 'item');
</div> </div>
</div> </div>
<div class="content"> <div class="content">
<span class="link"> <span class="link" @click.stop>
{{ card.name }} {{ card.name }}
<ItemDescriptorProxy :id="card.id" /> <ItemDescriptorProxy :id="card.id" />
</span> </span>

View File

@ -5,6 +5,7 @@ globals:
quantity: Quantity quantity: Quantity
language: Language language: Language
entity: Entity entity: Entity
preview: Preview
user: User user: User
details: Details details: Details
collapseMenu: Collapse lateral menu collapseMenu: Collapse lateral menu

View File

@ -5,6 +5,7 @@ globals:
language: Idioma language: Idioma
quantity: Cantidad quantity: Cantidad
entity: Entidad entity: Entidad
preview: Vista previa
user: Usuario user: Usuario
details: Detalles details: Detalles
collapseMenu: Contraer menú lateral collapseMenu: Contraer menú lateral

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?