Adjust missing-vote text when finalized and grey out disabled sliders

This commit is contained in:
2026-02-04 23:20:50 +01:00
parent 4edbfb16ee
commit 731c8f5cb5
3 changed files with 15 additions and 1 deletions

View File

@@ -150,7 +150,7 @@ export function renderVotes() {
const footer = document.createElement("div");
footer.className = "vote-controls";
footer.innerHTML = `
<div class="warning-text ${hasVote ? "hidden" : ""}" id="warn-${s.id}">${t("vote.missingWarn")}</div>
<div class="warning-text ${hasVote ? "hidden" : ""}" id="warn-${s.id}">${state.votesFinal ? t("vote.missingFinalWarn") : t("vote.missingWarn")}</div>
<div class="vote-row">
<input class="full-slider" type="range" min="0" max="10" value="${current}" data-id="${s.id}" ${state.votesFinal ? "disabled" : ""}>
<span class="score" id="score-${s.id}">${displayScore}</span>