Remove vote next button; show finalize + admin-wait messaging

This commit is contained in:
2026-02-04 23:09:16 +01:00
parent 58159119cf
commit c21f344520
4 changed files with 28 additions and 5 deletions

View File

@@ -298,7 +298,20 @@ function bindNavButtons() {
});
});
});
makeForward("nav-vote-next");
makeBack("nav-vote-prev");
const finalizeBtn = $("finalize-votes");
if (finalizeBtn) {
finalizeBtn.addEventListener("click", async () => {
try {
const desired = !state.votesFinal;
await api.finalizeVotes(desired);
state.votesFinal = desired;
renderPhasePill();
toast(desired ? t("vote.finalize") : t("vote.unfinalize"));
} catch (err) {
toast(err.message, true);
}
});
}
}