add label to gabinete

This commit is contained in:
Peter Maquiran
2023-04-12 14:39:26 +01:00
parent 8cc4181c41
commit 0660b44542
47 changed files with 210 additions and 783 deletions
+15
View File
@@ -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
}
}