Remove vote next button; show finalize + admin-wait messaging
This commit is contained in:
@@ -81,6 +81,7 @@ const translations = {
|
||||
"vote.finalize": "Finalize votes",
|
||||
"vote.unfinalize": "Edit votes",
|
||||
"vote.finalHint": "Finalize when you’re 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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user