force close modals on collection or record deletion

This commit is contained in:
Gani Georgiev
2026-06-28 10:35:21 +03:00
parent 6d724ba6e0
commit 61d2ca3e60
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -976,7 +976,7 @@ function deleteDropdownItem(data, modalSettings) {
return false;
}
app.modals.close(collectionModal);
app.modals.close(collectionModal, true);
},
() => {
local.nameConfirm = "";
+1 -1
View File
@@ -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" },