mirror of
https://github.com/zadam/trilium.git
synced 2025-10-31 18:36:30 +01:00
redesign of search input. Saved search is now saved under active note and doesn't need page reload
This commit is contained in:
@@ -165,12 +165,15 @@ function selectContextMenuItem(event, cmd) {
|
||||
const isProtected = treeUtils.getParentProtectedStatus(node);
|
||||
const type = cmd.split("_")[1];
|
||||
|
||||
treeService.createNote(node, parentNoteId, 'after', type, isProtected);
|
||||
treeService.createNote(node, parentNoteId, 'after', {
|
||||
type: type,
|
||||
isProtected: isProtected
|
||||
});
|
||||
}
|
||||
else if (cmd.startsWith("insertChildNote")) {
|
||||
const type = cmd.split("_")[1];
|
||||
|
||||
treeService.createNote(node, node.data.noteId, 'into', type);
|
||||
treeService.createNote(node, node.data.noteId, 'into', { type: type });
|
||||
}
|
||||
else if (cmd === "editBranchPrefix") {
|
||||
branchPrefixDialog.showDialog(node);
|
||||
|
||||
Reference in New Issue
Block a user