redesign of search input. Saved search is now saved under active note and doesn't need page reload

This commit is contained in:
zadam
2019-03-29 23:24:41 +01:00
parent 8fb6edad67
commit 89b8e2bb08
12 changed files with 104 additions and 69 deletions

View File

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