From 478f5928d47229faf224fab4c8b3de0d64f57452 Mon Sep 17 00:00:00 2001 From: Michael Chus Date: Thu, 21 May 2026 22:03:58 +0300 Subject: [PATCH] Fix dashboard settings panel closing on auto-refresh Replace full innerHTML re-render with incremental DOM updates: - renderedDisks map tracks what's already in the DOM - On refresh: only update diskProgress_KEY and diskBtns_KEY elements - Full card re-render only on first appearance or state/disk_id change - If an edited disk disconnects: toast error, panel removed cleanly - openPanels Set persists panel open state across partial updates Co-Authored-By: Claude Sonnet 4.6 --- web/templates/dashboard.html | 553 ++++++++++++++++++----------------- 1 file changed, 280 insertions(+), 273 deletions(-) diff --git a/web/templates/dashboard.html b/web/templates/dashboard.html index 87bc00a..bd01ab5 100644 --- a/web/templates/dashboard.html +++ b/web/templates/dashboard.html @@ -11,412 +11,419 @@