diff --git a/wwwroot/js/i18n.js b/wwwroot/js/i18n.js index ff88207..24ff44a 100644 --- a/wwwroot/js/i18n.js +++ b/wwwroot/js/i18n.js @@ -78,6 +78,7 @@ const translations = { "vote.saved": "Saved vote", "vote.missing": "Missing", "vote.missingWarn": "You haven’t voted yet. Slide to set a score.", + "vote.missingFooter": "At least one game is missing a score. Check before finalizing.", "vote.finalize": "Finalize votes", "vote.unfinalize": "Edit votes", "vote.finalHint": "Finalize when you’re done. You can unfinalize to change scores.", @@ -201,6 +202,7 @@ const translations = { "vote.saved": "Stimme gespeichert", "vote.missing": "Fehlt", "vote.missingWarn": "Du hast hier noch nicht abgestimmt. Schiebe den Regler.", + "vote.missingFooter": "Mindestens ein Spiel fehlt noch eine Wertung. Prüfe vor dem Abschließen.", "vote.finalize": "Abstimmung abschließen", "vote.unfinalize": "Abstimmung bearbeiten", "vote.finalHint": "Schließe ab, wenn du fertig bist. Zum Ändern wieder öffnen.", diff --git a/wwwroot/js/ui.js b/wwwroot/js/ui.js index 8ce383e..0481442 100644 --- a/wwwroot/js/ui.js +++ b/wwwroot/js/ui.js @@ -736,7 +736,7 @@ export function updatePhaseNav() { const lockBadge = $("results-lock"); if (lockBadge) { - const locked = !state.resultsOpen && phase === "Vote"; + const locked = state.votesFinal && !state.resultsOpen && phase === "Vote"; lockBadge.classList.toggle("hidden", !locked); lockBadge.textContent = t("admin.resultsLocked"); } @@ -751,7 +751,7 @@ export function updatePhaseNav() { const missing = missingVotesCount(); const showMissing = !state.votesFinal && missing > 0; voteMissingBadge.classList.toggle("hidden", !showMissing); - voteMissingBadge.textContent = t("vote.missingWarn"); + voteMissingBadge.textContent = t("vote.missingFooter"); } const waitAdmin = $("vote-wait-admin");