This commit is contained in:
2021-01-30 19:45:23 +00:00
parent d895b40122
commit cabb7f231c

View File

@@ -433,15 +433,13 @@ export default {
}
}
},
async remove() {
async reset() {
let vm = this;
try {
if ((await window.$gz.dialog.confirmDelete()) !== true) {
return;
}
//do the delete
vm.formState.loading = true;
//No need to delete a non saved record, just abandon it...
let url = API_BASE_URL + vm.listViewId;
@@ -530,7 +528,7 @@ function generateMenu(vm) {
menuOptions.menuItems.push({
title: "ResetToDefault",
icon: "$ayiTrashAlt",
icon: "$ayiUndo",
surface: false,
key: FORM_KEY + ":reset",
vm: vm