fixed overlay not clearing delete bug
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user