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

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