diff --git a/src/app/modals/profile/profile.page.ts b/src/app/modals/profile/profile.page.ts index 285353b74..51a96b6c2 100644 --- a/src/app/modals/profile/profile.page.ts +++ b/src/app/modals/profile/profile.page.ts @@ -53,7 +53,7 @@ export class ProfilePage implements OnInit { notImplemented() { } async getNotificationData(){ - + this.notificationservice.tempClearArray(); this.storageservice.get("Notifications").then((value) => { console.log("Init get store", value) @@ -120,7 +120,7 @@ export class ProfilePage implements OnInit { } notificatinsRoutes = (index, Service, Object, IdObject, FolderId) => { - this.deleteNotification(index); + if (Service === "agenda") { this.zone.run(() => this.router.navigate(['/home/agenda', IdObject, 'agenda'])); } @@ -167,7 +167,7 @@ export class ProfilePage implements OnInit { this.zone.run(() => this.router.navigate(['/home/gabinete-digital/expedientes-pr', IdObject, 'gabinete-digital'])); } - + this.deleteNotification(index); } diff --git a/src/app/services/notifications.service.ts b/src/app/services/notifications.service.ts index 6ae9b2db6..1a3a32dda 100644 --- a/src/app/services/notifications.service.ts +++ b/src/app/services/notifications.service.ts @@ -175,6 +175,10 @@ export class NotificationsService { } } + tempClearArray(){ + this.DataArray = []; + } + async onReceviNotification() { if(window['WLAuthorizationManager']) {