diff --git a/public/app.js b/public/app.js index 34c71ba..919e8d1 100644 --- a/public/app.js +++ b/public/app.js @@ -326,8 +326,14 @@ document.getElementById('btn-save').addEventListener('click', async () => { }); const j = await r.json(); if (j.success) { - status.textContent = '✅ Configuration saved! Restart may be required.'; + // Reload cameras from the server (in-memory config is now updated). + await loadCameras(); + renderLiveGrid(); + renderPlaybackCameras(); + renderCameraCards(); + status.textContent = '✅ Cameras saved! Switching to Live Wall...'; status.style.color = 'var(--green)'; + setTimeout(() => switchTab('live'), 800); } else { status.textContent = '❌ Save failed: ' + j.error; status.style.color = 'var(--red)';