Regriession fix for title update causing trouble for content edit.

This commit is contained in:
Magnus Åhall 2026-05-26 13:54:22 +02:00
parent 4c513a5106
commit 5a67c638c6

View file

@ -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') ?? ''