refactoring

This commit is contained in:
zadam
2020-02-07 21:43:02 +01:00
parent 14d6372bd8
commit 47f7f5f4d9
6 changed files with 13 additions and 10 deletions

View File

@@ -62,7 +62,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
}
});
treeBuilder.prepareTree().then(treeData => this.initFancyTree($tree, treeData));
this.initialized = treeBuilder.prepareTree().then(treeData => this.initFancyTree($tree, treeData));
return $widget;
}
@@ -106,7 +106,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
const notePath = await treeService.getNotePath(data.node);
const activeTabContext = this.appContext.tabManager.getActiveTabContext();
const activeTabContext = this.tabManager.getActiveTabContext();
await activeTabContext.setNote(notePath);
},
expand: (event, data) => this.setExpandedToServer(data.node.data.branchId, true),