fix: dialog state not reset
This commit is contained in:
parent
a57171aea3
commit
fcee41eaf9
1 changed files with 2 additions and 0 deletions
|
|
@ -411,6 +411,7 @@ function customerConfirmUnsave() {
|
||||||
action: () => {
|
action: () => {
|
||||||
customerFormStore.resetForm();
|
customerFormStore.resetForm();
|
||||||
customerFormState.value.editReadonly = true;
|
customerFormState.value.editReadonly = true;
|
||||||
|
customerFormState.value.dialogModal = false;
|
||||||
},
|
},
|
||||||
cancel: () => {},
|
cancel: () => {},
|
||||||
});
|
});
|
||||||
|
|
@ -1708,6 +1709,7 @@ function createCustomerForm(customerType: 'CORP' | 'PERS') {
|
||||||
await fetchListCustomer();
|
await fetchListCustomer();
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
|
:close="() => (customerFormState.editReadonly = true)"
|
||||||
:before-close="
|
:before-close="
|
||||||
() => {
|
() => {
|
||||||
if (customerFormStore.isFormDataDifferent()) {
|
if (customerFormStore.isFormDataDifferent()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue