From 3f9f5152966ba3fe4a7e65c81940909f55f03968 Mon Sep 17 00:00:00 2001 From: Stanislaw Grams Date: Fri, 13 Feb 2026 09:07:05 +0100 Subject: [PATCH] [feat](trx-frontend-http): allow signal clear button for rx role Enable sig-clear-btn for RX users since clearing signal measurements is a local UI operation that doesn't affect rig state. Only disable decode history clear buttons: - aprs-clear-btn - ft8-clear-btn - wspr-clear-btn - cw-clear-btn Co-Authored-By: Claude Opus 4.6 Signed-off-by: Stanislaw Grams --- .../trx-frontend/trx-frontend-http/assets/web/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 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 523e13b..aa11f8d 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 @@ -179,7 +179,8 @@ function applyAuthRestrictions() { if (jogWheel) jogWheel.style.opacity = "0.5"; jogButtons.forEach(btn => btn.disabled = true); - // Disable plugin enable/disable buttons and clear buttons + // Disable plugin enable/disable buttons and decode history clear buttons + // Note: sig-clear-btn is allowed for RX (clears local measurements only) const pluginToggleBtns = [ "ft8-decode-toggle-btn", "wspr-decode-toggle-btn", @@ -187,8 +188,7 @@ function applyAuthRestrictions() { "aprs-clear-btn", "ft8-clear-btn", "wspr-clear-btn", - "cw-clear-btn", - "sig-clear-btn" + "cw-clear-btn" ]; pluginToggleBtns.forEach(id => { const btn = document.getElementById(id);