Profile get old notification bug resolved

This commit is contained in:
Eudes Inácio
2021-08-20 16:59:44 +01:00
parent 997bdcec84
commit 629a02a13e
2 changed files with 7 additions and 3 deletions
+3 -3
View File
@@ -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);
}
@@ -175,6 +175,10 @@ export class NotificationsService {
}
}
tempClearArray(){
this.DataArray = [];
}
async onReceviNotification() {
if(window['WLAuthorizationManager']) {