Adjust vote footer warnings; lock admin badge to finalized state

This commit is contained in:
2026-02-04 23:12:02 +01:00
parent c21f344520
commit 7ad8f29857
2 changed files with 4 additions and 2 deletions

View File

@@ -78,6 +78,7 @@ const translations = {
"vote.saved": "Saved vote",
"vote.missing": "Missing",
"vote.missingWarn": "You havent 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 youre 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.",

View File

@@ -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");