Update visible node settings immediately after admin saves

Hop-State: A_06FP8ATA10D8VTQA9QBS6KR
Hop-Proposal: R_06FP8ASAVWCYV52CHF5AE1G
Hop-Task: T_06FP8AC8PWCNKR7C8686AXG
Hop-Attempt: AT_06FP8AC8PXWTNRRHT6JBPMG
This commit is contained in:
2026-07-14 22:06:26 -07:00
committed by Hop
parent 67b96d6725
commit e8a2dd2979
3 changed files with 52 additions and 3 deletions
+4
View File
@@ -91,6 +91,10 @@ export default function AdminPage() {
body: JSON.stringify(payload),
});
if (res.ok) {
const data = await res.json().catch(() => ({}));
if (data.node) {
window.dispatchEvent(new CustomEvent('synapsis:node-updated', { detail: data.node }));
}
showToast('Settings saved!', 'success');
refreshAccentColor();
} else {