diff --git a/static/js/node.mjs b/static/js/node.mjs index 054e319..1c76682 100644 --- a/static/js/node.mjs +++ b/static/js/node.mjs @@ -12,6 +12,7 @@ export class NodeUI extends Component { this.menu = signal(false) this.node = signal(null) this.nodeContent = createRef() + this.nodeProperties = createRef() this.keys = signal([]) this.page = signal('node') @@ -80,7 +81,7 @@ export class NodeUI extends Component { break case 'node-properties': - page = html`<${NodeProperties} nodeui=${this} />` + page = html`<${NodeProperties} ref=${this.nodeProperties} nodeui=${this} />` break case 'keys': @@ -160,7 +161,10 @@ export class NodeUI extends Component { break case 'S': - this.saveNode() + if (this.page.value == 'node') + this.saveNode() + else if (this.page.value == 'node-properties') + this.nodeProperties.current.save() break case 'U':