7489-testToMaster #408

Merged
alexm merged 292 commits from 7489-testToMaster into master 2024-05-28 05:33:17 +00:00
1 changed files with 5 additions and 2 deletions
Showing only changes of commit 7c5b61cca8 - Show all commits

View File

@ -21,14 +21,17 @@ const closeButton = ref(null);
const warehousesOptions = ref([]);
const onSubmit = async () => await createZoneWarehouse();
const createZoneWarehouse = () => {
try {
axios.post(`Zones/${route.params.id}/warehouses`, ZoneWarehouseFormData);
emit('onSubmit');
} catch (error) {
console.error(error);
} finally {
closeForm();
}
closeForm();
};
const closeForm = () => {
@ -43,7 +46,7 @@ const closeForm = () => {
auto-load
@on-fetch="(data) => (warehousesOptions = data)"
/>
<FormPopup model="ZoneWarehouse" @on-submit="createZoneWarehouse()">
<FormPopup model="ZoneWarehouse" @on-submit="onSubmit">
<template #form-inputs>
<VnRow class="row q-gutter-md q-mb-md">
<div class="col">