mirror of
https://github.com/zadam/trilium.git
synced 2025-01-16 12:08:03 +08:00
fix createNoteInto keyboard shortcut
This commit is contained in:
parent
141d4593ca
commit
d4d54c5f01
2 changed files with 11 additions and 11 deletions
|
@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue