From bc206e8f6bc4aec4aaa8c5d0bdfcf65c0fe15b61 Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Fri, 27 Feb 2026 23:03:46 +0100 Subject: [PATCH] [fix](trx-frontend-http): hide TX audio controls on RX-only rigs Signed-off-by: Stan Grams Co-authored-by: OpenAI Codex --- .../trx-frontend/trx-frontend-http/assets/web/app.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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 098b172..f2fd376 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 @@ -239,8 +239,16 @@ function applyCapabilities(caps) { // PTT / TX controls const pttBtn = document.getElementById("ptt-btn"); const txMetersRow = document.getElementById("tx-meters"); + const txAudioBtn = document.getElementById("tx-audio-btn"); + const txVolSlider = document.getElementById("tx-vol"); + const txVolControl = txVolSlider ? txVolSlider.closest(".vol-label") : null; if (pttBtn) pttBtn.style.display = caps.tx ? "" : "none"; if (txMetersRow) txMetersRow.style.display = caps.tx ? "" : "none"; + if (txAudioBtn) txAudioBtn.style.display = caps.tx ? "" : "none"; + if (txVolControl) txVolControl.style.display = caps.tx ? "" : "none"; + if (!caps.tx && typeof stopTxAudio === "function" && txActive) { + stopTxAudio(); + } // TX limit row const txLimitRow = document.getElementById("tx-limit-row");