some refactorings of note detail service

This commit is contained in:
azivner
2018-03-26 23:48:45 -04:00
parent 9c1b8da573
commit 7e856283ee
7 changed files with 103 additions and 89 deletions

View File

@@ -276,7 +276,7 @@ async function treeInitialized() {
}
if (startNotePath) {
activateNode(startNotePath);
await activateNode(startNotePath);
// looks like this this doesn't work when triggered immediatelly after activating node
// so waiting a second helps
@@ -322,7 +322,7 @@ function initFancyTree(branch) {
},
expand: (event, data) => setExpandedToServer(data.node.data.branchId, true),
collapse: (event, data) => setExpandedToServer(data.node.data.branchId, false),
init: (event, data) => treeInitialized,
init: (event, data) => treeInitialized(), // don't collapse to short form
hotkeys: {
keydown: treeKeyBindings
},