[feat](trx-frontend-http): disable clear buttons for rx role

Disable all decode history clear buttons for rx-authenticated users:
- APRS clear
- FT8 clear
- WSPR clear
- CW clear
- Signal clear

These are control operations that should be restricted to full access.

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 08:55:48 +01:00
parent d5cd2c6204
commit 4c7b89b4e3
@@ -156,11 +156,16 @@ function applyAuthRestrictions() {
if (jogWheel) jogWheel.style.opacity = "0.5";
jogButtons.forEach(btn => btn.disabled = true);
// Disable plugin enable/disable buttons
// Disable plugin enable/disable buttons and clear buttons
const pluginToggleBtns = [
"ft8-decode-toggle-btn",
"wspr-decode-toggle-btn",
"cw-auto"
"cw-auto",
"aprs-clear-btn",
"ft8-clear-btn",
"wspr-clear-btn",
"cw-clear-btn",
"sig-clear-btn"
];
pluginToggleBtns.forEach(id => {
const btn = document.getElementById(id);