Show newly created node

This commit is contained in:
Magnus Åhall 2026-06-10 17:08:30 +02:00
parent 95a26e67d5
commit c583138270
3 changed files with 11 additions and 4 deletions

View file

@ -161,7 +161,12 @@ export class App {
return
const nn = Node.create(name, this.currentNode.UUID)
nn.save()
await nn.save()
// Treenode is forcefully rerendered and children refetched to both show the new node
// and to get it resorted.
const treenode = this.sidebar.getTreeNode(this.currentNode.UUID)
treenode.render(true, true)
}//}}}
async goToNode(nodeUUID, dontPush, dontExpand) {//{{{
if (nodeUUID === null || nodeUUID === undefined)