fixed overlay not clearing delete bug

This commit is contained in:
2021-09-30 21:46:34 +00:00
parent 9a9abe4d19
commit b89281575d
37 changed files with 384 additions and 401 deletions

View File

@@ -233,21 +233,20 @@ export default {
}
},
async remove() {
const vm = this;
try {
if ((await window.$gz.dialog.confirmDelete()) !== true) {
return;
}
const res = await window.$gz.api.remove("attachment/" + vm.editId);
const res = await window.$gz.api.remove("attachment/" + this.editId);
if (res.error) {
window.$gz.errorHandler.handleFormError(res.error);
} else {
vm.editMenu = false;
vm.editName = null;
vm.editNotes = null;
vm.editId = null;
vm.getList();
this.editMenu = false;
this.editName = null;
this.editNotes = null;
this.editId = null;
this.getList();
}
} catch (error) {
window.$gz.errorHandler.handleFormError(error);