delete confirmation lists notes for deletion in a UL list, #438

This commit is contained in:
zadam
2019-08-17 09:00:53 +02:00
parent ad7a6c4d79
commit 1882b089ab
3 changed files with 8 additions and 4 deletions

View File

@@ -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;