add sorting of tasks in the UI to counteract weirdness with links.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user