From e63e70d5df18de41b91f3366307e2b1e1875ff1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eudes=20In=C3=A1cio?= Date: Wed, 18 Aug 2021 18:28:21 +0100 Subject: [PATCH] Despachos-pr route updated on notification --- src/app/modals/profile/profile.page.ts | 7 +------ src/app/services/notifications.service.ts | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/app/modals/profile/profile.page.ts b/src/app/modals/profile/profile.page.ts index a10f75c37..944d2eb15 100644 --- a/src/app/modals/profile/profile.page.ts +++ b/src/app/modals/profile/profile.page.ts @@ -101,12 +101,7 @@ export class ProfilePage implements OnInit { } else if (Service === "gabinete-digital" && Object === "despachos-pr") { - let navigationExtras: NavigationExtras = { - queryParams: { - "serialNumber": IdObject, - } - }; - this.zone.run(() => this.router.navigate(['/home/gabinete-digital/despachos-pr/despacho-pr'], navigationExtras)); + this.zone.run(() =>this.router.navigate(['/home/gabinete-digital/despachos-pr',IdObject,'gabinete-digital'])); } else if (Service === "accoes" && Object === "accao") { this.zone.run(() => this.router.navigate(['/home/publications', IdObject])); diff --git a/src/app/services/notifications.service.ts b/src/app/services/notifications.service.ts index 06f5da41a..d253a06ed 100644 --- a/src/app/services/notifications.service.ts +++ b/src/app/services/notifications.service.ts @@ -247,12 +247,7 @@ export class NotificationsService { } else if (data.Service === "gabinete-digital" && data.Object === "despachos-pr") { - let navigationExtras: NavigationExtras = { - queryParams: { - "serialNumber": data.IdObject, - } - }; - this.zone.run(() =>this.router.navigate(['/home/gabinete-digital/despachos-pr/despacho-pr'], navigationExtras)); + this.zone.run(() =>this.router.navigate(['/home/gabinete-digital/despachos-pr',data.IdObject,'gabinete-digital'])); } else if (data.Service === "accoes" && data.Object === "accao") { this.zone.run(() => this.router.navigate(['/home/publications',data.IdObject]));