mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
fix open expediente
This commit is contained in:
@@ -491,16 +491,9 @@ export class EventsPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
viewExpedientListPage() {
|
viewExpedientListPage() {
|
||||||
if (this.loggeduser.Profile == 'MDGPR') {
|
|
||||||
if (window.innerWidth < 701) {
|
if (this.loggeduser.Profile == 'PR') {
|
||||||
this.router.navigate(['/home/gabinete-digital/expediente']);
|
console.log('pr')
|
||||||
}
|
|
||||||
else {
|
|
||||||
let navigationExtras: NavigationExtras = { queryParams: { "expedientes": true, } };
|
|
||||||
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (this.loggeduser.Profile == 'PR') {
|
|
||||||
if (window.innerWidth < 701) {
|
if (window.innerWidth < 701) {
|
||||||
this.router.navigate(['/home/gabinete-digital/expedientes-pr']);
|
this.router.navigate(['/home/gabinete-digital/expedientes-pr']);
|
||||||
}
|
}
|
||||||
@@ -508,6 +501,15 @@ export class EventsPage implements OnInit {
|
|||||||
let navigationExtras: NavigationExtras = { queryParams: { "expedientes-pr": true, } };
|
let navigationExtras: NavigationExtras = { queryParams: { "expedientes-pr": true, } };
|
||||||
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
console.log("MD")
|
||||||
|
if (window.innerWidth < 701) {
|
||||||
|
this.router.navigate(['/home/gabinete-digital/expediente']);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
let navigationExtras: NavigationExtras = { queryParams: { "expedientes": true, } };
|
||||||
|
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user