|
|
@ -8,11 +8,15 @@ |
|
|
|
export let tasks: TaskResult[]; |
|
|
|
export let showAllOptions: boolean; |
|
|
|
export let header: string; |
|
|
|
|
|
|
|
let sortedTasks: TaskResult[] = []; |
|
|
|
|
|
|
|
$: sortedTasks = tasks.sort((a,b) => a.createdTime.localeCompare(b.createdTime)) |
|
|
|
</script> |
|
|
|
|
|
|
|
{#if tasks.length > 0} |
|
|
|
<h3>{header}</h3> |
|
|
|
{#each tasks as task (task.id)} |
|
|
|
{#each sortedTasks as task (task.id)} |
|
|
|
<TaskEntry |
|
|
|
showAllOptions={showAllOptions} |
|
|
|
task={task} project={project} |
|
|
|