From 9cc08d16da3d2d3a67f0b2c2c5b49d614bb03fbe Mon Sep 17 00:00:00 2001 From: Shawn Date: Tue, 16 Jun 2026 18:41:13 -0400 Subject: [PATCH] settings: open as v2 overlay instead of redirecting to old settings page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- src/web/ui-v2-dist/index.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/web/ui-v2-dist/index.html b/src/web/ui-v2-dist/index.html index 0f3a119..c4d3c33 100644 --- a/src/web/ui-v2-dist/index.html +++ b/src/web/ui-v2-dist/index.html @@ -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