re-arrenged components
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
14
frontend/src/routes/task/TaskList.svelte
Normal file
14
frontend/src/routes/task/TaskList.svelte
Normal file
@@ -0,0 +1,14 @@
|
||||
<script>
|
||||
import { t } from '../../translations.svelte.js';
|
||||
import ListTask from './ListTask.svelte';
|
||||
|
||||
let { estimated_time, show_closed, tasks } = $props();
|
||||
|
||||
let sortedTasks = $derived.by(() => Object.values(tasks).sort((a, b) => a.name.localeCompare(b.name)));
|
||||
</script>
|
||||
|
||||
<ul>
|
||||
{#each sortedTasks as task}
|
||||
<ListTask {task} {estimated_time} show_closed={show_closed || task.show_closed} />
|
||||
{/each}
|
||||
</ul>
|
||||
Reference in New Issue
Block a user