Root page override
This commit is contained in:
parent
31eee4ede5
commit
b3ca0d29d0
6 changed files with 70 additions and 29 deletions
|
|
@ -281,7 +281,7 @@ export class N2Sidebar extends CustomHTMLElement {
|
|||
}
|
||||
}//}}}
|
||||
async navigateLeft(n) {//{{{
|
||||
if (n === null || n === undefined)
|
||||
if (n === null || n === undefined || n.UUID == ROOT_NODE)
|
||||
return
|
||||
|
||||
const expanded = this.getNodeExpanded(n.UUID)
|
||||
|
|
@ -331,7 +331,7 @@ export class N2Sidebar extends CustomHTMLElement {
|
|||
_mbus.dispatch("GO_TO_NODE", { nodeUUID: n.getSiblingAfter()?.UUID, dontPush: false, dontExpand: true })
|
||||
}//}}}
|
||||
async navigateUp(n) {//{{{
|
||||
if (n === null || n === undefined)
|
||||
if (n === null || n === undefined || n.UUID == ROOT_NODE)
|
||||
return
|
||||
|
||||
let parent = null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue