mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix bug
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user