fix: hide ImageUploadDialog footer

This commit is contained in:
puriphatt 2024-08-05 07:13:46 +00:00
parent 693c2fcb9a
commit 30787ff473
2 changed files with 13 additions and 5 deletions

View file

@ -359,6 +359,7 @@ function clearData() {
}
async function undo() {
isImageEdit.value = false;
formType.value = 'view';
imageUrl.value = prevImageUrl.value;
formData.value = prevFormData.value;
@ -390,6 +391,7 @@ function triggerCreate(
}
function drawerEdit() {
isImageEdit.value = true;
formType.value = 'edit';
prevFormData.value = {
...formData.value,