tasks usability improvements

This commit is contained in:
Michael Shamoon
2022-05-26 22:58:01 -07:00
parent dc86993c84
commit 66b2013d23
4 changed files with 43 additions and 9 deletions

View File

@@ -22,6 +22,10 @@ export class TasksService {
return this.fileTasks?.length
}
public get allFileTasks(): PaperlessTask[] {
return this.fileTasks.slice(0)
}
public get incompleteFileTasks(): PaperlessTask[] {
return this.fileTasks.filter(
(t) => t.status == PaperlessTaskStatus.Incomplete