From 5a497289dac7582e2c2e13fd14623106a1cc1ede Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 3 Apr 2024 08:41:20 +0200 Subject: [PATCH] refs #6321 perf: i18n --- .../Ticket/Negative/TicketLackDialog.vue | 26 +++++++++++-------- .../Ticket/Negative/TicketLackDialogProxy.vue | 6 ++--- src/router/modules/ticket.js | 2 +- 3 files changed, 19 insertions(+), 15 deletions(-) diff --git a/src/pages/Ticket/Negative/TicketLackDialog.vue b/src/pages/Ticket/Negative/TicketLackDialog.vue index 9a151608e..99284be02 100644 --- a/src/pages/Ticket/Negative/TicketLackDialog.vue +++ b/src/pages/Ticket/Negative/TicketLackDialog.vue @@ -234,17 +234,12 @@ function rowsHasSelected({ keys }) { const resultSplit = ref([]); const split = async ({ simple }, data = []) => { - openConfirmationModal( - t('Confirm splitAll'), - t('Are you sure you want to split all tickets?'), - null, - () => { - const body = simple ? data : selectedRows.value; - axios.post(`Tickets/split`, body).then((data) => { - resultSplit.value = data; - }); - } - ); + openConfirmationModal(t('Confirm split selected'), t('splitQuestion'), null, () => { + const body = simple ? data : selectedRows.value; + axios.post(`Tickets/split`, body).then((data) => { + resultSplit.value = data; + }); + }); }; defineExpose({ split }); @@ -336,3 +331,12 @@ function getIcon(key, prop) { + + + en: + splitQuestion: Are you sure you want to split all tickets? + Confirm split selected: Confirm split selected + es: + splitQuestion: ¿Estás seguro de separar los tickets seleccionados? + Confirm split selected: Confirmar separar tickets seleccionados + diff --git a/src/pages/Ticket/Negative/TicketLackDialogProxy.vue b/src/pages/Ticket/Negative/TicketLackDialogProxy.vue index 57946472a..5118f2b4f 100644 --- a/src/pages/Ticket/Negative/TicketLackDialogProxy.vue +++ b/src/pages/Ticket/Negative/TicketLackDialogProxy.vue @@ -22,7 +22,7 @@ const token = session.getTokenMultimedia(); const ticketRef = ref(null); const hasRowsSelected = ref(false); -async function splitAll() { +async function splitSelected() { ticketRef.value.split({ all: true }); } @@ -48,12 +48,12 @@ async function splitAll() { - {{ t('globals.splitAll') }} + {{ t('globals.split') }} diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js index 53a98e19c..feeb72344 100644 --- a/src/router/modules/ticket.js +++ b/src/router/modules/ticket.js @@ -35,7 +35,7 @@ export default { path: 'negative', meta: { title: 'negative', - icon: 'view_lists', + icon: 'view_list', }, component: () => import('src/pages/Ticket/Negative/TicketLackList.vue'),