fix createNoteInto keyboard shortcut

This commit is contained in:
zadam 2020-03-17 11:28:41 +01:00
parent 141d4593ca
commit d4d54c5f01
2 changed files with 11 additions and 11 deletions

View file

@ -177,4 +177,15 @@ export default class Entrypoints extends Component {
this.triggerCommand('moveBranchIdsTo', {branchIds: selectedOrActiveBranchIds});
}
async createNoteIntoCommand() {
const note = appContext.tabManager.getActiveTabNote();
if (note) {
await noteCreateService.createNote(note.noteId, {
isProtected: note.isProtected,
saveSelection: false
});
}
}
}

View file

@ -575,17 +575,6 @@ export default class NoteTreeWidget extends TabAwareWidget {
});
}
async createNoteIntoCommand() {
const node = this.getActiveNode();
if (node) {
await noteCreateService.createNote(node.data.noteId, {
isProtected: node.data.isProtected,
saveSelection: false
});
}
}
async setExpandedToServer(branchId, isExpanded) {
utils.assertArguments(branchId);