new raceday and backup

This commit is contained in:
larssand
2026-09-01 07:07:23 +02:00
parent c2bfa97d30
commit f561dd8feb
21 changed files with 1042 additions and 60 deletions

View File

@@ -423,9 +423,9 @@ export function tickClockHelper({ dom, currentLanguage, handleSessionTimerTick,
dom.clock.textContent = new Date().toLocaleString(currentLanguage() === "sv" ? "sv-SE" : "en-US");
const timerState = handleSessionTimerTick();
const active = getActiveSession();
if (getCurrentView() === "timing" && active) {
if (["timing", "race_day"].includes(getCurrentView()) && active) {
if (timerState.changed) renderView();
else if (active.status === "running") refreshTimingDynamics();
else if (["running", "paused"].includes(active.status)) refreshTimingDynamics();
}
if (getCurrentView() === "dashboard" && timerState.changed) renderView();
if (getOverlayMode() && getCurrentView() === "overlay" && active && timerState.changed) renderView();