mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-02 03:35:09 +02:00
feat: reload button in sidebar footer
Adds a "reload" button next to "debug" and "clear" in the sidebar footer. Calls location.reload() to fully refresh the side panel, re-run connection logic, and clear stale state.
This commit is contained in:
@@ -154,6 +154,7 @@
|
||||
<div class="footer-left">
|
||||
<button class="debug-toggle" id="debug-toggle" title="Toggle debug panels">debug</button>
|
||||
<button class="footer-btn" id="clear-chat" title="Clear chat">clear</button>
|
||||
<button class="footer-btn" id="reload-sidebar" title="Reload sidebar">reload</button>
|
||||
</div>
|
||||
<div class="footer-right">
|
||||
<span class="dot" id="footer-dot"></span>
|
||||
|
||||
@@ -599,6 +599,11 @@ document.getElementById('clear-chat').addEventListener('click', async () => {
|
||||
</div>`;
|
||||
});
|
||||
|
||||
// ─── Reload Sidebar ─────────────────────────────────────────────
|
||||
document.getElementById('reload-sidebar').addEventListener('click', () => {
|
||||
location.reload();
|
||||
});
|
||||
|
||||
// ─── Debug Tabs ─────────────────────────────────────────────────
|
||||
|
||||
const debugToggle = document.getElementById('debug-toggle');
|
||||
|
||||
Reference in New Issue
Block a user