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