refactor: header undo
This commit is contained in:
parent
31f0aa3120
commit
5e7451010d
1 changed files with 6 additions and 2 deletions
|
|
@ -517,12 +517,16 @@ function customerConfirmUnsave(close = true) {
|
||||||
actionText: t('ok'),
|
actionText: t('ok'),
|
||||||
persistent: true,
|
persistent: true,
|
||||||
message: t('form.warning.unsave'),
|
message: t('form.warning.unsave'),
|
||||||
|
|
||||||
action: () => {
|
action: () => {
|
||||||
customerFormStore.resetForm();
|
customerFormStore.resetForm();
|
||||||
customerFormState.value.readonly = true;
|
customerFormState.value.readonly = true;
|
||||||
|
|
||||||
customerFormState.value.drawerModal = !close;
|
if (!customerFormState.value.drawerModal) {
|
||||||
customerFormState.value.dialogModal = !close;
|
customerFormState.value.dialogModal = !close;
|
||||||
|
} else {
|
||||||
|
customerFormState.value.drawerModal = !close;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
cancel: () => {},
|
cancel: () => {},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue