mirror of
https://github.com/garrytan/gstack.git
synced 2026-07-12 18:56:35 +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:
@@ -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