Adjust vote footer warnings; lock admin badge to finalized state
This commit is contained in:
@@ -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.",
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user