mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
fix
This commit is contained in:
@@ -54,7 +54,6 @@ export class EventsPage implements OnInit {
|
||||
expedienteGdStore = ExpedienteGdStore
|
||||
|
||||
listToPresent = [];
|
||||
listToPresentexpediente = []
|
||||
|
||||
expedienteTaskPipe = new ExpedienteTaskPipe()
|
||||
|
||||
@@ -103,7 +102,6 @@ export class EventsPage implements OnInit {
|
||||
|
||||
this.changeProfileService.registerCallback(() => {
|
||||
this.listToPresent = [];
|
||||
this.listToPresentexpediente = []
|
||||
})
|
||||
|
||||
|
||||
@@ -275,12 +273,6 @@ export class EventsPage implements OnInit {
|
||||
//
|
||||
})
|
||||
|
||||
this.storage.get('process').then((process: any[] = []) => {
|
||||
//
|
||||
if(Array.isArray(process)) {
|
||||
this.listToPresentexpediente = process;
|
||||
}
|
||||
})
|
||||
|
||||
this.showLoader = false;
|
||||
|
||||
@@ -355,21 +347,8 @@ export class EventsPage implements OnInit {
|
||||
LoadList() {
|
||||
if(this.firstEnter) {
|
||||
this.showCorrespondenciasLoader = true
|
||||
this.processes.GetTaskListExpediente(false).subscribe(result => {
|
||||
|
||||
let ExpedienteTask = result.map(e => this.expedienteTaskPipe.transform(e))
|
||||
|
||||
this.listToPresentexpediente = ExpedienteTask;
|
||||
|
||||
this.storage.set('process', ExpedienteTask)
|
||||
|
||||
this.showCorrespondenciasLoader = false
|
||||
}, ((error) => {
|
||||
|
||||
this.showCorrespondenciasLoader = false
|
||||
//
|
||||
this.getEventsFromLocalDb();
|
||||
}));
|
||||
this.getEventsFromLocalDb();
|
||||
}
|
||||
|
||||
this.firstEnter = true
|
||||
@@ -404,9 +383,6 @@ export class EventsPage implements OnInit {
|
||||
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||
}
|
||||
|
||||
goToExpediente(SerialNumber: any) {
|
||||
this.router.navigate(['/home/events/expediente', SerialNumber, 'events']);
|
||||
}
|
||||
|
||||
viewExpedientListPage() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user