mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
add label to gabinete
This commit is contained in:
@@ -21,4 +21,19 @@ export class TaskService {
|
||||
|
||||
return creationDatePlus24h.getTime() > currentDate.getTime()
|
||||
}
|
||||
|
||||
filter(item, attribute) {
|
||||
|
||||
if(attribute == 'Para hoje') {
|
||||
return this.deadlineIsToday(item.TaskStartDate)
|
||||
} else if (attribute == 'Novos') {
|
||||
return this.lessThen24Hours(item.TaskStartDate)
|
||||
} else if (attribute == 'Lidos') {
|
||||
return item.TaskStatus == 'open'
|
||||
} else if (attribute == 'Não lidos') {
|
||||
return item.TaskStatus != 'open'
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user