From c8ab5b3bfd64fe7a41a09d542705fa881e6e8f32 Mon Sep 17 00:00:00 2001 From: jorgep Date: Tue, 13 Aug 2024 14:57:09 +0200 Subject: [PATCH] feat: refs #7663 add setWeight menu opt (wip) --- src/pages/Ticket/Card/TicketDescriptorMenu.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/pages/Ticket/Card/TicketDescriptorMenu.vue b/src/pages/Ticket/Card/TicketDescriptorMenu.vue index c7784bc2a..6ffae48ee 100644 --- a/src/pages/Ticket/Card/TicketDescriptorMenu.vue +++ b/src/pages/Ticket/Card/TicketDescriptorMenu.vue @@ -44,6 +44,7 @@ const actions = { push({ name: 'TicketSummary', params: { id: clonedTicketId } }); } }, + setWeight: async () => {}, remove: async () => { try { await axios.post(`Tickets/${ticketId}/setDeleted`); @@ -146,10 +147,15 @@ async function sendSms(body) { } function openConfirmDialog(callback) { + const message = + callback == 'setWeight' + ? t('Es posible que se facture este ticket, desea continuar?') + : undefined; dialog({ component: VnConfirm, componentProps: { promise: actions[callback], + message, }, }); } @@ -253,6 +259,12 @@ function openConfirmDialog(callback) { {{ t('To clone ticket') }} + + + + + {{ t('Set weight') }} +