mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 18:05:55 +01:00
refactoring
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user