From 2e19194a085a82a47ae4b8e9d3cf3dfe970f8947 Mon Sep 17 00:00:00 2001 From: jorgep Date: Wed, 6 Mar 2024 14:36:37 +0100 Subject: [PATCH] fix: refs #6942 reloading --- src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue b/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue index d6ce0e41d..e652a2385 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue @@ -225,11 +225,7 @@ async function checkToBook() { async function toBook() { await axios.post(`InvoiceIns/${entityId.value}/toBook`); - - quasar.notify({ - type: 'positive', - message: t('globals.dataSaved'), - }); + quasar.notify({ type: 'positive', message: t('globals.dataSaved') }); await cardDescriptorRef.value.getData(); setTimeout(() => location.reload(), 500); @@ -245,7 +241,9 @@ async function toUnbook() { : t('isNotLinked', { bookEntry }); quasar.notify({ type, message }); - if (isLinked) await cardDescriptorRef.value.getData(); + await cardDescriptorRef.value.getData(); + + if (!isLinked) setTimeout(() => location.reload(), 500); } async function deleteInvoice() {