Rerender votes immediately on finalize; update footer badges

This commit is contained in:
2026-02-04 23:26:30 +01:00
parent ae5a1ef785
commit 8fca5558fb
2 changed files with 2 additions and 0 deletions

View File

@@ -308,6 +308,7 @@ function bindNavButtons() {
await api.finalizeVotes(desired);
state.votesFinal = desired;
renderPhasePill();
renderVotes();
toast(desired ? t("vote.finalize") : t("vote.unfinalize"));
} catch (err) {
toast(err.message, true);

View File

@@ -159,6 +159,7 @@ export function renderVotes() {
li.querySelector(".card-body").appendChild(footer);
list.appendChild(li);
});
updatePhaseNav();
list.querySelectorAll("input[type=range]").forEach((input) => {
input.addEventListener("input", (e) => {
if (state.votesFinal) return;