|
|
@ -22,8 +22,8 @@ |
|
|
|
|
|
|
|
let activeTasks: TaskResult[] = []; |
|
|
|
let inactiveTasks: TaskResult[] = []; |
|
|
|
let completedTasks: TaskResult[] = []; |
|
|
|
let todoTasks: TaskResult[] = []; |
|
|
|
let completedTasks: TaskResult[] = []; |
|
|
|
let onholdTasks: TaskResult[] = []; |
|
|
|
let failedTasks: TaskResult[] = []; |
|
|
|
|
|
|
@ -37,14 +37,14 @@ |
|
|
|
if (!hideInactive) { |
|
|
|
inactiveTasks = project.tasks.filter(t => !t.active); |
|
|
|
|
|
|
|
completedTasks = inactiveTasks.filter(t => t.statusTag === "completed" || t.statusTag == null); |
|
|
|
todoTasks = inactiveTasks.filter(t => t.statusTag === "to do" || t.statusTag === "idea"); |
|
|
|
completedTasks = inactiveTasks.filter(t => t.statusTag === "completed" || t.statusTag == null); |
|
|
|
onholdTasks = inactiveTasks.filter(t => t.statusTag === "on hold" || t.statusTag === "postponed"); |
|
|
|
failedTasks = inactiveTasks.filter(t => t.statusTag === "failed" || t.statusTag === "declined" || t.statusTag === "wont do"); |
|
|
|
} else { |
|
|
|
inactiveTasks = []; |
|
|
|
completedTasks = []; |
|
|
|
todoTasks = []; |
|
|
|
completedTasks = []; |
|
|
|
onholdTasks = []; |
|
|
|
failedTasks = []; |
|
|
|
} |
|
|
@ -72,8 +72,8 @@ |
|
|
|
<TaskList header="" tasks={activeTasks} project={project} showAllOptions={showAllOptions} /> |
|
|
|
{:else} |
|
|
|
<TaskList header="Active" tasks={activeTasks} project={project} showAllOptions={showAllOptions} /> |
|
|
|
<TaskList header="Completed" tasks={completedTasks} project={project} showAllOptions={showAllOptions} /> |
|
|
|
<TaskList header="To Do" tasks={todoTasks} project={project} showAllOptions={showAllOptions} /> |
|
|
|
<TaskList header="Completed" tasks={completedTasks} project={project} showAllOptions={showAllOptions} /> |
|
|
|
<TaskList header="On Hold" tasks={onholdTasks} project={project} showAllOptions={showAllOptions} /> |
|
|
|
<TaskList header="Failed" tasks={failedTasks} project={project} showAllOptions={showAllOptions} /> |
|
|
|
{/if} |
|
|
|