From fe222c03936adc45d02f7160dee20e69b3574733 Mon Sep 17 00:00:00 2001 From: James Smith Date: Thu, 21 May 2026 21:12:09 +0100 Subject: [PATCH] fix: don't restore #output visibility in non-sensor modes SensorDashboard.applyViewState was resetting output.style.display='' in the else branch, undoing switchMode's modesWithVisuals hide for waterfall, morse, ook, and every other mode with its own visuals. Only touch #output when mode === 'sensor'. Co-Authored-By: Claude Sonnet 4.6 --- static/js/components/sensor-dashboard.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/js/components/sensor-dashboard.js b/static/js/components/sensor-dashboard.js index 16e49cc..283ea5a 100644 --- a/static/js/components/sensor-dashboard.js +++ b/static/js/components/sensor-dashboard.js @@ -172,8 +172,7 @@ const SensorDashboard = (function () { if (output) output.style.display = isDash ? 'none' : ''; _updateToggle(isDash); } else { - if (view) view.style.display = 'none'; - if (output) output.style.display = ''; + if (view) view.style.display = 'none'; } }