From 2c40ce1c879fd5fa80f7e1630de3f5ac236b2e4e Mon Sep 17 00:00:00 2001 From: Sominemo Date: Wed, 8 Jan 2025 22:53:12 +0200 Subject: [PATCH] Rebuild UI on sections edited --- editor.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/editor.html b/editor.html index dd4c0c96..78aa3158 100644 --- a/editor.html +++ b/editor.html @@ -1185,6 +1185,7 @@

Telegram Limits Editor

const sectionIcon = this.constructIconPicker(section.icon, (icon) => { section.icon = icon; this.markDirty(); + this.constructContent(); }); sectionIcon.title = 'Pick an icon for the title of the section'; sectionElement.appendChild(sectionIcon); @@ -1201,6 +1202,10 @@

Telegram Limits Editor

this.markDirty(); }); + sectionName.addEventListener('blur', () => { + this.constructContent(); + }); + const sectionColor = document.createElement('input'); sectionColor.type = 'color'; sectionColor.title = 'Pick a color for the section'; @@ -1209,6 +1214,7 @@

Telegram Limits Editor

sectionColor.addEventListener('input', () => { section.color = this.hexToRgb(sectionColor.value); this.markDirty(); + this.constructContent(); }); const idContainer = document.createElement('span');