update
This commit is contained in:
@@ -43,7 +43,10 @@ async function speichern() {
|
||||
// Die Liste kommt vom Server schon sortiert: offene nach Stimmen, dann
|
||||
// die erledigten. Hier nur noch in zwei Abschnitte teilen.
|
||||
const offene = computed(() => props.items.filter((w) => !w.done_at))
|
||||
const erledigte = computed(() => props.items.filter((w) => w.done_at))
|
||||
// Zuletzt Erledigtes zuerst — so sieht man gleich, was neu dazukam
|
||||
const erledigte = computed(() =>
|
||||
props.items.filter((w) => w.done_at).sort((a, b) => b.done_at.localeCompare(a.done_at))
|
||||
)
|
||||
|
||||
async function anlegen() {
|
||||
if (!entwurf.value.trim()) return
|
||||
|
||||
Reference in New Issue
Block a user