[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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user