Fix satellite dashboard TARGET dropdown not reflecting enabled satellites

Add auto-refresh on window focus so the dropdown updates automatically when
switching back from the sidebar, plus a manual ↺ refresh button next to the
dropdown. Also preserves the current selection across refreshes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
James Smith
2026-03-18 14:05:22 +00:00
parent dc84e933c1
commit 9e7dfbda5a
2 changed files with 44 additions and 2 deletions

View File

@@ -405,6 +405,33 @@ body {
box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}
#satRefreshBtn {
background: transparent;
border: 1px solid rgba(0, 212, 255, 0.4);
border-radius: 4px;
color: var(--text-secondary);
cursor: pointer;
font-size: 14px;
line-height: 1;
padding: 6px 8px;
transition: color 0.2s, border-color 0.2s;
flex-shrink: 0;
}
#satRefreshBtn:hover {
color: var(--accent-cyan);
border-color: var(--accent-cyan);
}
#satRefreshBtn.spinning {
animation: spin 0.6s linear;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
/* Countdown panel */
.countdown-panel {
flex-shrink: 0;