Adjust vote footer warnings; lock admin badge to finalized state
This commit is contained in:
@@ -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