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) { filter(item, attribute) {
if(attribute == 'Para hoje') { if(attribute == 'Para hoje') {
return this.deadlineIsToday(item.TaskReceiveDate || item.taskReceiveDate) return this.deadlineIsToday(item.Deadline || item.deadline)
} else if (attribute == 'Novos') { } else if (attribute == 'Novos') {
return this.lessThen24Hours(item.TaskReceiveDate || item.taskReceiveDate) return this.lessThen24Hours(item.TaskReceiveDate || item.taskReceiveDate)
} else if (attribute == 'Lidos') { } else if (attribute == 'Lidos') {
@@ -124,7 +124,7 @@ export class TaskService {
this.read = this.AllProcess.filter((item) => this.filter(item,'Lidos')).length 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.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.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 this.overdueTasks = this.AllProcess.filter((task) => this.overdueTask(task.Deadline || task.deadline)).length
} }
+6 -6
View File
@@ -1,12 +1,12 @@
export let versionData = { export let versionData = {
"shortSHA": "45a401430", "shortSHA": "27fd1d876",
"SHA": "45a4014307bb15795eb55a4b84de2f9e9c84f5ed", "SHA": "27fd1d8765a87f2c043934044e9259f9bc59a283",
"branch": "feature/gabineteLabels", "branch": "feature/gabineteLabels",
"lastCommitAuthor": "'Peter Maquiran'", "lastCommitAuthor": "'Peter Maquiran'",
"lastCommitTime": "'Tue Apr 18 11:51:56 2023 +0100'", "lastCommitTime": "'Tue Apr 18 14:38:32 2023 +0100'",
"lastCommitMessage": "fix variables", "lastCommitMessage": "fix",
"lastCommitNumber": "4918", "lastCommitNumber": "4919",
"change": "", "change": "",
"changeStatus": "On branch feature/gabineteLabels\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/modals/create-process/create-process.page.ts\n\tmodified: src/app/pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.page.ts\n\tmodified: src/app/shared/gabinete-digital/diplomas/diplomas.page.html", "changeStatus": "On branch feature/gabineteLabels\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/services/task.service.ts",
"changeAuthor": "peter.maquiran" "changeAuthor": "peter.maquiran"
} }