more refactoring ...

This commit is contained in:
zadam
2020-01-12 20:15:05 +01:00
parent 9d81bf030d
commit bf7541bfb9
13 changed files with 260 additions and 248 deletions

View File

@@ -209,11 +209,6 @@ async function setExpandedToServer(branchId, isExpanded) {
await server.put('branches/' + branchId + '/expanded/' + expandedNum);
}
/** @return {FancytreeNode[]} */
function getSelectedNodes(stopOnParents = false) {
return tree.getSelectedNodes(stopOnParents);
}
async function treeInitialized() {
if (appContext.getTabContexts().length > 0) {
// this is just tree reload - tabs are already in place
@@ -276,6 +271,8 @@ async function treeInitialized() {
filteredTabs[0].active = true;
}
console.log("filteredTabs", filteredTabs);
for (const tab of filteredTabs) {
await noteDetailService.loadNoteDetail(tab.notePath, {
state: tab,