settings: open as v2 overlay instead of redirecting to old settings page

- Changed both tab bar ⚙ and status bar ⚙ buttons to open the
  inline Settings overlay (openOverlay('Settings')) with data loads
  instead of navigating to /settings (old Bootstrap page)
- The overlay was already fully built — HTML, CSS, JS loaders were all
  present, just never wired up
This commit is contained in:
2026-06-16 18:41:13 -04:00
parent 93eb8cc4aa
commit 9cc08d16da
+9 -3
View File
@@ -786,16 +786,22 @@ function init(){
btn.onclick=()=>{
const view=btn.dataset.view;
if(view==='main'){document.querySelectorAll('.tab-btn').forEach(b=>b.classList.remove('active'));btn.classList.add('active');}
else if(view==='settings'){window.location.href='/settings';return;}
else if(view==='settings'){openOverlay('Settings');loadNetworkInfo();loadSystemInfo();loadAudioProfiles();loadHotspotStatus();loadBtStatus();loadBtMidi();return;}
else if(view==='presets'){openOverlay('Presets');loadPresets();}
else if(view==='snapshots'){openOverlay('Snapshots');loadSnapshots();}
else if(view==='downloads')openOverlay('Downloads');
};
});
// Status bar: settings → navigate to full settings page
// Status bar: settings → open settings overlay
document.getElementById('btnSettings').onclick=()=>{
window.location.href='/settings';
openOverlay('Settings');
loadNetworkInfo();
loadSystemInfo();
loadAudioProfiles();
loadHotspotStatus();
loadBtStatus();
loadBtMidi();
};
// Close all overlays