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); await api.finalizeVotes(desired);
state.votesFinal = desired; state.votesFinal = desired;
renderPhasePill(); renderPhasePill();
renderVotes();
toast(desired ? t("vote.finalize") : t("vote.unfinalize")); toast(desired ? t("vote.finalize") : t("vote.unfinalize"));
} catch (err) { } catch (err) {
toast(err.message, true); toast(err.message, true);

View File

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