From 57ef40f737c474efb6f13152afd6ef130b1d8cbd Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Mon, 23 Feb 2026 14:13:47 -0800 Subject: [PATCH] Add click handler for refresh button in portal The refresh button in the top bar had no click handler attached. Now it reloads the current page data when clicked. Co-Authored-By: Claude Opus 4.5 --- portal/portal.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/portal/portal.js b/portal/portal.js index cb2edb1..a15524c 100644 --- a/portal/portal.js +++ b/portal/portal.js @@ -39,6 +39,9 @@ const Portal = { // Setup sidebar toggle this.setupSidebarToggle(); + // Setup refresh button + this.setupRefreshButton(); + // Load initial data await this.loadDashboard(); @@ -240,6 +243,16 @@ const Portal = { }); }, + // Setup refresh button + setupRefreshButton() { + const btn = document.getElementById('refreshBtn'); + if (btn) { + btn.addEventListener('click', () => { + this.loadPageData(this.currentPage); + }); + } + }, + // Handle hash change handleHashChange() { const hash = window.location.hash.slice(1) || 'dashboard';