mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
delete notes skeleton dialog
This commit is contained in:
@@ -74,6 +74,9 @@ async function deleteNotes(branchIdsToDelete) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const deleteNotesDialog = await import("../dialogs/delete_notes.js");
|
||||
deleteNotesDialog.showDialog();
|
||||
|
||||
const $deleteClonesCheckbox = $('<div class="form-check">')
|
||||
.append($('<input type="checkbox" class="form-check-input" id="delete-clones-checkbox">'))
|
||||
.append($('<label for="delete-clones-checkbox">')
|
||||
@@ -93,11 +96,7 @@ async function deleteNotes(branchIdsToDelete) {
|
||||
.append($nodeTitles)
|
||||
.append($deleteClonesCheckbox);
|
||||
|
||||
const confirmDialog = await import('../dialogs/confirm.js');
|
||||
|
||||
if (!await confirmDialog.confirm($confirmText)) {
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
|
||||
const deleteClones = $deleteClonesCheckbox.find("input").is(":checked");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user