Rerender votes immediately on finalize; update footer badges
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user