Fix refresh button: add inline onclick and center icon

The addEventListener wasn't firing (likely cached JS). Added inline
onclick as reliable fallback and flexbox centering for the SVG icon.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
John Mizerek 2026-02-24 12:51:02 -08:00
parent 194eb4d205
commit 0e603b6cc9

View file

@ -109,7 +109,7 @@
<h1 id="pageTitle">Dashboard</h1>
</div>
<div class="top-bar-actions">
<button class="btn btn-icon" id="refreshBtn" title="Refresh">
<button class="btn btn-icon" id="refreshBtn" title="Refresh" onclick="Portal.loadPageData(Portal.currentPage)" style="display:flex;align-items:center;justify-content:center;cursor:pointer;">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M23 4v6h-6M1 20v-6h6"/>
<path d="M3.51 9a9 9 0 0114.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0020.49 15"/>