This commit is contained in:
Peter Maquiran
2023-04-18 16:50:25 +01:00
parent 27fd1d8765
commit dba5d96cda
2 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -89,7 +89,7 @@ export class TaskService {
filter(item, attribute) {
if(attribute == 'Para hoje') {
return this.deadlineIsToday(item.TaskReceiveDate || item.taskReceiveDate)
return this.deadlineIsToday(item.Deadline || item.deadline)
} else if (attribute == 'Novos') {
return this.lessThen24Hours(item.TaskReceiveDate || item.taskReceiveDate)
} else if (attribute == 'Lidos') {
@@ -124,7 +124,7 @@ export class TaskService {
this.read = this.AllProcess.filter((item) => this.filter(item,'Lidos')).length
this.unread = this.AllProcess.filter((item) => this.filter(item,'Não lidos')).length
this.deadline = this.AllProcess.filter((task) => this.deadlineIsToday(task.Deadline || task.deadline)).length
this.new = this.AllProcess.filter((task) => this.lessThen24Hours(task.TaskStartDate || task.taskStartDate)).length
this.new = this.AllProcess.filter((task) => this.lessThen24Hours(task.TaskReceiveDate || task.taskReceiveDate)).length
this.overdueTasks = this.AllProcess.filter((task) => this.overdueTask(task.Deadline || task.deadline)).length
}