From e3fd9bf54b720e2967266a60649d959fcbf2a84c Mon Sep 17 00:00:00 2001 From: Kevin Martinez Date: Wed, 27 Dec 2023 07:52:47 -0400 Subject: [PATCH] Add order confirmation --- src/pages/Order/OrderLines.vue | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/src/pages/Order/OrderLines.vue b/src/pages/Order/OrderLines.vue index e014ed44a..38ed8f9b0 100644 --- a/src/pages/Order/OrderLines.vue +++ b/src/pages/Order/OrderLines.vue @@ -50,6 +50,14 @@ async function remove(item) { }); refresh(); } + +async function confirmOrder() { + await axios.post(`Orders/${route.params.id}/confirm`); + quasar.notify({ + message: t('globals.confirm'), + type: 'positive', + }); +} en: @@ -236,6 +254,7 @@ en: remove: Remove confirmDeletion: Confirm deletion, confirmDeletionMessage: Are you sure you want to delete this item? + confirm: Confirm es: summary: Resumen subtotal: Subtotal @@ -250,4 +269,5 @@ es: remove: Eliminar confirmDeletion: Confirmar eliminación, confirmDeletionMessage: Seguro que quieres eliminar este artículo? + confirm: Confirmar