Sync better

This commit is contained in:
Magnus Åhall 2026-06-09 17:23:44 +02:00
parent 1f24f1f2f2
commit be7f5dbf30
5 changed files with 24 additions and 22 deletions

View file

@ -117,7 +117,6 @@ export class N2Sidebar extends CustomHTMLElement {
this.tabIndex = 0
this.treeNodeComponents = {}
this.treeTrunk = []
this.expandedNodes = {} // keyed on UUID
this.selectedNode = null
this.rendered = false
@ -170,10 +169,9 @@ export class N2Sidebar extends CustomHTMLElement {
}// }}}
reset() {// {{{
this.treeNodeComponents = {}
this.treeTrunk = []
this.rendered = false
this.elTreenodes.replaceChildren()
this.populateFirstLevel()
this.render()
}// }}}
getNodeExpanded(UUID) {//{{{
if (this.expandedNodes[UUID] === undefined)