From 61d2ca3e6085a3e2d5076f777b56b994bd910137 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Sun, 28 Jun 2026 10:35:21 +0300 Subject: [PATCH] force close modals on collection or record deletion --- ui/src/collections/collectionUpsertModal.js | 2 +- ui/src/records/recordUpsertModal.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/collections/collectionUpsertModal.js b/ui/src/collections/collectionUpsertModal.js index 98a8df17..bdbad12b 100644 --- a/ui/src/collections/collectionUpsertModal.js +++ b/ui/src/collections/collectionUpsertModal.js @@ -976,7 +976,7 @@ function deleteDropdownItem(data, modalSettings) { return false; } - app.modals.close(collectionModal); + app.modals.close(collectionModal, true); }, () => { local.nameConfirm = ""; diff --git a/ui/src/records/recordUpsertModal.js b/ui/src/records/recordUpsertModal.js index 6f320ddd..daf4e279 100644 --- a/ui/src/records/recordUpsertModal.js +++ b/ui/src/records/recordUpsertModal.js @@ -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" },