From 7a00b146bd88aacba434ce1f4289a3217c073398 Mon Sep 17 00:00:00 2001 From: szewczyw Date: Tue, 18 Mar 2025 14:53:19 +0100 Subject: [PATCH] disabled confiramtion button untill everyting is finished --- src/components/ConfirmationModal.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/ConfirmationModal.vue b/src/components/ConfirmationModal.vue index 749a11a..37911c7 100644 --- a/src/components/ConfirmationModal.vue +++ b/src/components/ConfirmationModal.vue @@ -7,6 +7,7 @@ import { useContractorsStore } from '@/stores/contractors.store' import { useCategoriesStore } from '@/stores/categories.store' import { useRoute } from 'vue-router' import { useRoutesStore } from '@/stores/routes.store' +import { ref } from 'vue' const ordersStore = useOrdersStore(); const siteControlStore = useSiteControlStore(); @@ -19,8 +20,10 @@ const { categories } = storeToRefs(categoriesStore); const { uuid } = storeToRefs(ordersStore); const { showConfirmationModal, isLoading} = storeToRefs(siteControlStore); const { route, routes } = storeToRefs(routeStore); +const isOrderConfirmed = ref(true) async function confirmOrder() { + isOrderConfirmed.value = false; await axiosInstance.put('/zamowienie/' + uuid.value); showConfirmationModal.value = false; if (uuid.value != undefined && route.value != undefined) { @@ -29,6 +32,7 @@ async function confirmOrder() { ordersStore.orderToClone = false isLoading.value = false; } + isOrderConfirmed.value = true; } @@ -46,7 +50,7 @@ async function confirmOrder() {