This commit is contained in:
tiago.kayaya
2021-05-26 08:53:26 +01:00
parent 79a8fe9a57
commit 3aaa268eea
2 changed files with 20 additions and 6 deletions
+18 -4
View File
@@ -255,10 +255,24 @@ export class EventsPage implements OnInit {
}
LoadList(){
this.processes.GetTasksList("Expediente", false).subscribe(result => {
this.expedientList = result.reverse();
console.log(this.expedientList);
});
switch (this.loggeduser.Profile) {
case 'MDGPR':
this.processes.GetTasksList("Expediente", false).subscribe(result => {
this.expedientList = result.reverse();
console.log(this.expedientList);
});
break;
case 'PR':
this.processes.GetTasksList("Expediente do Presidente", false).subscribe(result => {
this.expedientList = result.reverse();
console.log(this.expedientList);
});
break;
default:
break;
}
}
sortArrayISODate(myArray: any){