mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
delete confirmation lists notes for deletion in a UL list, #438
This commit is contained in:
@@ -87,8 +87,8 @@ async function deleteNodes(nodes) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const nodeTitles = nodes.map((node) => node.title);
|
||||
const confirmText = 'This will delete the following notes and their sub-notes: ' + nodeTitles.join(', ');
|
||||
const nodeTitles = $("<ul>").append(...nodes.map(node => $("<li>").text(node.title)));
|
||||
const confirmText = $("<div>").text('This will delete the following notes and their sub-notes: ').append(nodeTitles);
|
||||
|
||||
if (!await confirmDialog.confirm(confirmText)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user