pull of peter changes 2

This commit is contained in:
Eudes Inácio
2023-01-19 10:24:18 +01:00
2 changed files with 11 additions and 11 deletions
@@ -20,7 +20,7 @@ import { SessionStore } from 'src/app/store/session.service';
})
export class AllProcessesPage implements OnInit {
skeletonLoader = true;
skeletonLoader = false;
allProcessesList: any[] = [];
loggeduser: LoginUserRespose;
@@ -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);
}