Merge pull request #1218 from frappe/mergify/bp/main-hotfix/pr-1192

fix: Popup doesn't close after deletion (backport #1192)
This commit is contained in:
Shariq Ansari 2025-09-03 12:48:05 +05:30 committed by GitHub
commit 2ac8a06bae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,6 +106,8 @@ function convertToDeal(selections, unselectAll) {
}
function deleteValues(selections, unselectAll) {
unselectAllAction.value = unselectAll
const selectedDocs = Array.from(selections)
if (selectedDocs.length == 1) {
showDeleteDocModal.value = {
@ -217,6 +219,12 @@ function bulkActions(selections, unselectAll) {
}
function reload(unselectAll) {
showDeleteDocModal.value = {
showLinkedDocsModal: false,
showDeleteModal: false,
docname: null,
}
unselectAllAction.value?.()
unselectAll?.()
list.value?.reload()