force close modals on collection or record deletion
This commit is contained in:
@@ -976,7 +976,7 @@ function deleteDropdownItem(data, modalSettings) {
|
||||
return false;
|
||||
}
|
||||
|
||||
app.modals.close(collectionModal);
|
||||
app.modals.close(collectionModal, true);
|
||||
},
|
||||
() => {
|
||||
local.nameConfirm = "";
|
||||
|
||||
@@ -1076,7 +1076,7 @@ function deleteDropdownItem(collection, data, modalSettings) {
|
||||
`Do you really want to delete the selected record?`,
|
||||
async () => {
|
||||
await deleteRecord();
|
||||
app.modals.close(e.target.closest(".modal"));
|
||||
app.modals.close(e.target.closest(".modal"), true);
|
||||
},
|
||||
null,
|
||||
{ yesButton: "Delete record" },
|
||||
|
||||
Reference in New Issue
Block a user