From 9de8536bdf2e5b8deeaa1018db77ff642c04aeca Mon Sep 17 00:00:00 2001 From: cclohmar Date: Wed, 5 Aug 2026 12:06:12 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20save=20auto-refreshes=20cameras=20and=20?= =?UTF-8?q?switches=20to=20Live=20Wall=20=E2=80=94=20no=20restart=20needed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/app.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)';