[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 <noreply@anthropic.com>
Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>
This commit is contained in:
2026-02-13 09:07:05 +01:00
parent 3510a7910b
commit 3f9f515296
@@ -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);