Remove vote next button; show finalize + admin-wait messaging
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user