From f8507698f426893962cd6faed9040c48cc0c3c58 Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Sun, 1 Mar 2026 10:59:09 +0100 Subject: [PATCH] [fix](trx-frontend): hide signal visuals for non-sdr Hide the combined waterfall and spectrum block when filter controls are unavailable so non-SDR rigs do not show those visuals. Co-authored-by: OpenAI Codex Signed-off-by: Stan Grams --- .../trx-frontend-http/assets/web/app.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js index 48ee9cf..7f192e0 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js @@ -82,9 +82,9 @@ function showAuthGate(allowGuest = false) { authGate.style.flexDirection = "column"; authGate.style.justifyContent = "center"; authGate.style.alignItems = "stretch"; - const overviewStrip = document.querySelector(".overview-strip"); - if (overviewStrip) { - overviewStrip.style.display = "none"; + const signalVisualBlock = document.querySelector(".signal-visual-block"); + if (signalVisualBlock) { + signalVisualBlock.style.display = "none"; } // Hide all tab panels @@ -108,9 +108,9 @@ function hideAuthGate() { const authGate = document.getElementById("auth-gate"); authGate.style.display = "none"; document.getElementById("loading").style.display = "block"; - const overviewStrip = document.querySelector(".overview-strip"); - if (overviewStrip) { - overviewStrip.style.display = ""; + const signalVisualBlock = document.querySelector(".signal-visual-block"); + if (signalVisualBlock) { + signalVisualBlock.style.display = ""; } // Show Main tab by default and hide all other tabs @@ -277,8 +277,12 @@ function applyCapabilities(caps) { }); // Spectrum panel (SDR-only) + const signalVisualBlock = document.querySelector(".signal-visual-block"); const spectrumPanel = document.getElementById("spectrum-panel"); const centerFreqField = document.getElementById("center-freq-field"); + if (signalVisualBlock) { + signalVisualBlock.style.display = caps.filter_controls ? "" : "none"; + } if (spectrumPanel) { if (caps.filter_controls) { spectrumPanel.style.display = "";