mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
save
This commit is contained in:
@@ -114,7 +114,6 @@ export class GabineteDigitalPage implements OnInit {
|
||||
ngOnInit() {
|
||||
this.router.events.forEach((event) => {
|
||||
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||
this.checkRoutes();
|
||||
this.LoadCounts();
|
||||
}
|
||||
});
|
||||
@@ -149,7 +148,7 @@ export class GabineteDigitalPage implements OnInit {
|
||||
|
||||
checkRoutes(){
|
||||
if(this.router.url == '/home/gabinete-digital?eventos=true'){
|
||||
this.openEventsToApprovePage("MDGPR");
|
||||
this.openEventsToApprovePage();
|
||||
this.selectedElement='approval';
|
||||
}
|
||||
else if(this.router.url == '/home/gabinete-digital?expedientes=true'){
|
||||
@@ -189,6 +188,9 @@ export class GabineteDigitalPage implements OnInit {
|
||||
this. openDiplomasAssinarPage();
|
||||
this.selectedElement='DiplomasAssinar';
|
||||
}
|
||||
else{
|
||||
this.checkRoutes();
|
||||
}
|
||||
}
|
||||
|
||||
refreshExpedientes(){
|
||||
@@ -312,9 +314,7 @@ export class GabineteDigitalPage implements OnInit {
|
||||
return false;
|
||||
}
|
||||
|
||||
openEventsToApprovePage(profile:any) {
|
||||
console.log(profile);
|
||||
|
||||
openEventsToApprovePage() {
|
||||
this.closeAllDesktopComponents();
|
||||
let navigationExtras: NavigationExtras = { queryParams: {"eventos": true,}};
|
||||
if( window.innerWidth <= 801) {
|
||||
|
||||
Reference in New Issue
Block a user