This commit is contained in:
tiago.kayaya
2021-07-09 14:44:17 +01:00
28 changed files with 234 additions and 77 deletions
@@ -98,7 +98,6 @@ export class GabineteDigitalPage implements OnInit {
}
};
this.checkRoutes();
this.checkUser();
}
@@ -112,9 +111,15 @@ export class GabineteDigitalPage implements OnInit {
ngOnInit() {
this.router.events.forEach((event) => {
if(event instanceof NavigationEnd && event.url == this.router.url) {
const pathname = window.location.pathname
this.router.events.forEach((event) => {
if(event instanceof NavigationEnd && event.url == pathname) {
this.checkRoutes();
this.LoadCounts();
console.log('yes', pathname)
} else {
console.log('not')
}
});
@@ -189,7 +194,7 @@ export class GabineteDigitalPage implements OnInit {
this.selectedElement='DiplomasAssinar';
}
else{
this.checkRoutes();
this.checkUser();
}
}