checked/improved permissions, improved sorting

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-03-09 11:16:13 +01:00
parent 9ab1e479eb
commit 97fdfb3d55
3 changed files with 7 additions and 9 deletions

View File

@@ -17,6 +17,7 @@
if (res.ok){
poll = await res.json();
yikes();
console.log(Object.entries(poll.weights).sort((a,b) => a[0] - b[0]));
} else error(res);
}
@@ -67,7 +68,7 @@
<thead>
<tr>
<td>{t('option')}</td>
{#each Object.entries(poll.weights) as [weight,name]}
{#each Object.entries(poll.weights).sort((a,b) => a[0] - b[0]) as [weight,name]}
<td class="weight">
{weight}
<span class="description">