mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix createNoteInto keyboard shortcut
This commit is contained in:
parent
141d4593ca
commit
d4d54c5f01
@ -177,4 +177,15 @@ export default class Entrypoints extends Component {
|
|||||||
|
|
||||||
this.triggerCommand('moveBranchIdsTo', {branchIds: selectedOrActiveBranchIds});
|
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) {
|
async setExpandedToServer(branchId, isExpanded) {
|
||||||
utils.assertArguments(branchId);
|
utils.assertArguments(branchId);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user