some style fixes and refactoring for tree context menu

This commit is contained in:
zadam
2019-04-01 21:11:20 +02:00
parent a4c8bdeda2
commit 90a331b989
4 changed files with 42 additions and 36 deletions

View File

@@ -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);