This commit is contained in:
tiago.kayaya
2021-07-13 12:05:17 +01:00
parent 40de613773
commit ae090ad82d
7 changed files with 99 additions and 70 deletions
@@ -33,19 +33,16 @@ export class ExpedientePage implements OnInit {
private processes:ProcessesService,
private modalController: ModalController,
private alertService: AlertService,
private router: Router,
) {
private router: Router,
) {
this.profile = 'mdgpr';
}
ngOnInit() {
this.LoadList();
const pathname = window.location.pathname
this.router.events.forEach((event) => {
if(event instanceof NavigationEnd && event.url == pathname) {
this.LoadList();
this.refreshing();
}
});
}
@@ -83,6 +80,12 @@ export class ExpedientePage implements OnInit {
});
}
async refreshing() {
setTimeout(() => {
this.LoadList();
}, 1500);
}
doRefresh(event) {
this.LoadList();
setTimeout(() => {
@@ -99,4 +102,3 @@ export class ExpedientePage implements OnInit {
}
}