Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
List note titles in delete confirmation (#619)
parsehexfbb77d3e5524
diff --git a/src/public/javascripts/services/branches.js b/src/public/javascripts/services/branches.jsindex dbcda42cf3..b9539d4880 100644--- a/src/public/javascripts/services/branches.js+++ b/src/public/javascripts/services/branches.js@@ -83,7 +83,14 @@ async function moveToNode(nodesToMove, toNode) {async function deleteNodes(nodes) {nodes = await filterRootNote(nodes);- if (nodes.length === 0 || !await confirmDialog.confirm('Are you sure you want to delete select note(s) and all the sub-notes?')) {+ if (nodes.length === 0) {+ return false;+ }++ const nodeTitles = nodes.map((node) => node.title);+ const confirmText = 'This will delete the following notes and their sub-notes: ' + nodeTitles.join(', ');++ if (!await confirmDialog.confirm(confirmText)) {return false;}