diff --git a/static/js/node.mjs b/static/js/node.mjs index acebbb7..7959831 100644 --- a/static/js/node.mjs +++ b/static/js/node.mjs @@ -48,7 +48,7 @@ export class N2NodeUI extends CustomHTMLElement { _mbus.subscribe('NODE_MODIFIED', () => { document.querySelector('#crumbs .crumbs')?.classList.add('node-modified') this.elIconSave.src = `/images/${_VERSION}/icon_save.svg` - this.render() + this.renderName() }) _mbus.subscribe('NODE_UNMODIFIED', () => { @@ -76,6 +76,9 @@ export class N2NodeUI extends CustomHTMLElement { this.showMarkdown(true) }// }}} + renderName() {// {{{ + this.elName.innerText = this.node?.get('Name') ?? '' + }// }}} render() {// {{{ this.elName.innerText = this.node?.get('Name') ?? '' this.elNodeContent.value = this.node?.get('Content') ?? ''