fix clone notes dialog

This commit is contained in:
zadam
2020-02-15 18:41:32 +01:00
parent e1bf4dcbc9
commit b2a48a1f3a
2 changed files with 11 additions and 10 deletions

View File

@@ -617,6 +617,12 @@ export default class NoteTreeWidget extends TabAwareWidget {
this.reloadTreeFromCache();
}
async cloneNotesToCommand() {
const selectedOrActiveNoteIds = this.getSelectedOrActiveNodes().map(node => node.data.noteId);
this.triggerCommand('cloneNoteIdsTo', {noteIds: selectedOrActiveNoteIds});
}
async moveNotesToCommand() {
const selectedOrActiveBranchIds = this.getSelectedOrActiveNodes().map(node => node.data.branchId);