checked/improved permissions, improved sorting
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user