[feat](trx-frontend-http): remove rig selector from about page
Use header rig selector as the single point for rig switching. Remove redundant about page rig selector controls and associated JavaScript event listeners. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -277,8 +277,6 @@ const loadingTitle = document.getElementById("loading-title");
|
||||
const loadingSub = document.getElementById("loading-sub");
|
||||
const headerSigCanvas = document.getElementById("header-sig-canvas");
|
||||
const themeToggleBtn = document.getElementById("theme-toggle");
|
||||
const rigSwitchSelect = document.getElementById("rig-switch-select");
|
||||
const rigSwitchBtn = document.getElementById("rig-switch-btn");
|
||||
const headerRigSwitchSelect = document.getElementById("header-rig-switch-select");
|
||||
const headerRigSwitchBtn = document.getElementById("header-rig-switch-btn");
|
||||
|
||||
@@ -1182,9 +1180,6 @@ async function switchRigFromSelect(selectEl) {
|
||||
}
|
||||
}
|
||||
|
||||
if (rigSwitchBtn) {
|
||||
rigSwitchBtn.addEventListener("click", () => switchRigFromSelect(rigSwitchSelect));
|
||||
}
|
||||
if (headerRigSwitchBtn) {
|
||||
headerRigSwitchBtn.addEventListener("click", () => switchRigFromSelect(headerRigSwitchSelect));
|
||||
}
|
||||
|
||||
@@ -281,7 +281,6 @@
|
||||
<tr><td>Rig</td><td id="about-rig-info">--</td></tr>
|
||||
<tr><td>Active rig</td><td id="about-active-rig">--</td></tr>
|
||||
<tr><td>Available rigs</td><td id="about-rig-list">--</td></tr>
|
||||
<tr><td>Switch rig</td><td><select id="rig-switch-select"></select> <button id="rig-switch-btn" type="button">Switch</button></td></tr>
|
||||
<tr><td>Rig connection</td><td id="about-rig-access">--</td></tr>
|
||||
<tr><td>Supported modes</td><td id="about-modes">--</td></tr>
|
||||
<tr><td>VFOs</td><td id="about-vfos">--</td></tr>
|
||||
|
||||
Reference in New Issue
Block a user