Minor UI refinements
This commit is contained in:
@@ -146,6 +146,27 @@ function renderResults() {
|
||||
row.append(when, who, count);
|
||||
el.appendChild(row);
|
||||
});
|
||||
|
||||
const noneWork = poll.votes.filter((v) => v.optionIds.length === 0).map((v) => v.name);
|
||||
if (noneWork.length > 0) {
|
||||
const row = document.createElement("div");
|
||||
row.className = "result-row none-row";
|
||||
|
||||
const when = document.createElement("span");
|
||||
when.className = "when";
|
||||
when.textContent = "None at all";
|
||||
|
||||
const who = document.createElement("span");
|
||||
who.className = "who";
|
||||
who.textContent = noneWork.join(", ");
|
||||
|
||||
const count = document.createElement("span");
|
||||
count.className = "count";
|
||||
count.textContent = noneWork.length;
|
||||
|
||||
row.append(when, who, count);
|
||||
el.appendChild(row);
|
||||
}
|
||||
}
|
||||
|
||||
$("vote-btn").addEventListener("click", async () => {
|
||||
|
||||
Reference in New Issue
Block a user