Show finalized vote status text with checkmark

This commit is contained in:
2026-02-04 23:23:33 +01:00
parent 731c8f5cb5
commit ae5a1ef785
3 changed files with 8 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ const translations = {
"nav.freezeModalTitle": "Freeze suggestions?",
"nav.freezeModalBody": "Once you leave Suggest, your games are locked: titles cannot be changed or deleted. Only optional details (description, links, players, artwork) remain editable. Continue?",
"nav.voteHint": "Cast votes for every game to unlock results.",
"nav.voteFinalized": "✅ You finalized your votes. Sit back and relax while the other players finalize their votes.",
"suggest.title": "Suggest games (up to 5)",
"suggest.new": "Add new suggestion",
@@ -164,6 +165,7 @@ const translations = {
"nav.freezeModalTitle": "Vorschläge einfrieren?",
"nav.freezeModalBody": "Sobald du die Vorschlagsphase verlässt, sind deine Spiele gesperrt: Titel können nicht mehr geändert oder gelöscht werden. Nur optionale Angaben (Beschreibung, Links, Spielerzahlen, Bilder) bleiben bearbeitbar. Fortfahren?",
"nav.voteHint": "Bewerte alle Spiele, um die Ergebnisse freizuschalten.",
"nav.voteFinalized": "✅ Du hast deine Stimmen finalisiert. Lehn dich zurück, bis die anderen fertig sind.",
"suggest.title": "Schlage Spiele vor (bis zu 5)",
"suggest.new": "Neuen Vorschlag hinzufügen",

View File

@@ -756,6 +756,11 @@ export function updatePhaseNav() {
waitAdmin.textContent = t("vote.waitAdmin");
}
const voteStatusText = $("vote-status-text");
if (voteStatusText) {
voteStatusText.textContent = state.votesFinal ? t("nav.voteFinalized") : t("nav.voteHint");
}
// Toggle admin-only back buttons
const backButtons = ["nav-vote-prev"];
backButtons.forEach((id) => {