all process

This commit is contained in:
Peter Maquiran
2023-01-18 17:18:08 +01:00
parent d08eeeba6c
commit 6195400e08
2 changed files with 9 additions and 9 deletions
@@ -47,11 +47,11 @@ export class AllProcessesPage implements OnInit {
// this.loadAllProcesses();
this.updateAllProcess()
this.router.events.forEach((event) => {
if (event instanceof NavigationStart && event.url.startsWith('/home/gabinete-digital')) {
if (window.location.pathname.split('/').length >= 4 && window.location.pathname.startsWith('/home/gabinete-digital')) {
if (window.location.pathname.startsWith('/home/gabinete-digital')) {
this.refreshing();
this.updateAllProcess()
} else {
// this.loadAllProcesses();
}
@@ -62,14 +62,14 @@ export class AllProcessesPage implements OnInit {
doRefresh() {
setTimeout(() => {
this.updateAllProcess();
}, 1000);
}
refreshing() {
setTimeout(() => {
// this.loadAllProcesses();
this.updateAllProcess();
}, 1000);
}