Remove vote next button; show finalize + admin-wait messaging

This commit is contained in:
2026-02-04 23:09:16 +01:00
parent 58159119cf
commit c21f344520
4 changed files with 28 additions and 5 deletions

View File

@@ -81,6 +81,7 @@ const translations = {
"vote.finalize": "Finalize votes",
"vote.unfinalize": "Edit votes",
"vote.finalHint": "Finalize when youre done. You can unfinalize to change scores.",
"vote.waitAdmin": "Waiting for admin to unlock results.",
"results.rank": "Rank",
"results.game": "Game",
@@ -203,6 +204,7 @@ const translations = {
"vote.finalize": "Abstimmung abschließen",
"vote.unfinalize": "Abstimmung bearbeiten",
"vote.finalHint": "Schließe ab, wenn du fertig bist. Zum Ändern wieder öffnen.",
"vote.waitAdmin": "Warten, bis der Admin die Ergebnisse freigibt.",
"results.rank": "Rang",
"results.game": "Spiel",

View File

@@ -749,8 +749,16 @@ export function updatePhaseNav() {
const voteMissingBadge = $("vote-missing");
if (voteMissingBadge) {
const missing = missingVotesCount();
voteMissingBadge.classList.toggle("hidden", missing === 0);
voteMissingBadge.textContent = missing > 0 ? t("vote.missingWarn") : "";
const showMissing = !state.votesFinal && missing > 0;
voteMissingBadge.classList.toggle("hidden", !showMissing);
voteMissingBadge.textContent = t("vote.missingWarn");
}
const waitAdmin = $("vote-wait-admin");
if (waitAdmin) {
const show = state.votesFinal && phase === "Vote" && !state.resultsOpen;
waitAdmin.classList.toggle("hidden", !show);
waitAdmin.textContent = t("vote.waitAdmin");
}
// Toggle admin-only back buttons