implemented selecting tasks by estimated time

This commit is contained in:
2025-07-14 00:19:35 +02:00
parent bac04ac047
commit b600a3613f
6 changed files with 62 additions and 13 deletions

View File

@@ -0,0 +1,27 @@
<script>
import {t} from '../translations.svelte.js';
let { task, onSelect = (task) => {} } = $props();
</script>
<div>
<div title={'task_'+task.id}>
{#if task.estimated_time}
<span class="estimate" onclick={() => onSelect(task)}>
{task.estimated_time}&nbsp;{t(task.estimated_time != 1 ? 'task.hours' : 'task.hour')}
</span>
{/if}
{task.name}
</div>
<div>
{@html task.description.rendered}
</div>
{#if task.children}
<ul>
{#each task.children as child,tid}
<svelte:self task={child} />
{/each}
</ul>
{/if}
</div>