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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user