diff --git a/src/components/CancelationModal.vue b/src/components/CancelationModal.vue index 79910a3..151040c 100644 --- a/src/components/CancelationModal.vue +++ b/src/components/CancelationModal.vue @@ -5,6 +5,7 @@ import { axiosInstance } from '@/main' import { useSiteControlStore } from '@/stores/siteControl.store' import { useContractorsStore } from '@/stores/contractors.store' import { useCategoriesStore } from '@/stores/categories.store' +import { ref } from 'vue' const ordersStore = useOrdersStore(); const siteControlStore = useSiteControlStore(); @@ -13,9 +14,11 @@ const categoriesStore = useCategoriesStore(); const { uuid } = storeToRefs(ordersStore); const { showCancellationModal, isLoading } = storeToRefs(siteControlStore); +const cancellationReason = ref(); async function cancelOrder() { showCancellationModal.value = false; + // console.log(cancellationReason.value); axiosInstance.delete('/zamowienie/' + uuid.value); siteControlStore.newOrder(true); } @@ -31,10 +34,17 @@ async function cancelOrder() {