mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
some style fixes and refactoring for tree context menu
This commit is contained in:
@@ -173,7 +173,10 @@ function selectContextMenuItem(event, cmd) {
|
||||
else if (cmd.startsWith("insertChildNote")) {
|
||||
const type = cmd.split("_")[1];
|
||||
|
||||
treeService.createNote(node, node.data.noteId, 'into', { type: type });
|
||||
treeService.createNote(node, node.data.noteId, 'into', {
|
||||
type: type,
|
||||
isProtected: node.data.isProtected
|
||||
});
|
||||
}
|
||||
else if (cmd === "editBranchPrefix") {
|
||||
branchPrefixDialog.showDialog(node);
|
||||
|
||||
Reference in New Issue
Block a user