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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user