Root page override

This commit is contained in:
Magnus Åhall 2026-06-10 20:03:31 +02:00
parent 31eee4ede5
commit b3ca0d29d0
6 changed files with 70 additions and 29 deletions

View file

@ -416,6 +416,11 @@ export class Node {
_mbus.dispatch('NODE_MODIFIED', { node: this })
}// }}}
async save() {//{{{
// Just safeguarding not using the root node,
// which sort of exist but isn't supposed to communicate to server.
if (this.UUID == ROOT_NODE)
return
this.data.Content = this._content
this.data.Updated = new Date().toISOString()
this.data.HistoryUUID = uuidv7() // every time the node is saved a new history UUID identifies the changed node.