[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:
@@ -156,11 +156,16 @@ function applyAuthRestrictions() {
|
|||||||
if (jogWheel) jogWheel.style.opacity = "0.5";
|
if (jogWheel) jogWheel.style.opacity = "0.5";
|
||||||
jogButtons.forEach(btn => btn.disabled = true);
|
jogButtons.forEach(btn => btn.disabled = true);
|
||||||
|
|
||||||
// Disable plugin enable/disable buttons
|
// Disable plugin enable/disable buttons and clear buttons
|
||||||
const pluginToggleBtns = [
|
const pluginToggleBtns = [
|
||||||
"ft8-decode-toggle-btn",
|
"ft8-decode-toggle-btn",
|
||||||
"wspr-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 => {
|
pluginToggleBtns.forEach(id => {
|
||||||
const btn = document.getElementById(id);
|
const btn = document.getElementById(id);
|
||||||
|
|||||||
Reference in New Issue
Block a user