This commit is contained in:
Peter Maquiran
2021-08-31 09:00:33 +01:00
parent 23d73c6d5f
commit 6b61630abc
11 changed files with 157 additions and 58 deletions
+9 -3
View File
@@ -46,17 +46,20 @@ export class HeaderPage implements OnInit {
this.hideSearch();
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
console.log('Notifications not supported')
this.UpdateNotificationCount();
} else {
this.UpdateNotificationCount();
}
}
UpdateNotificationCount() {
this.notificationsService.registerCallback(
'any',
() => {
this.notificationLengthData();
setTimeout(()=>{
this.notificationLengthData();
}, 100)
}
)
}
@@ -146,7 +149,6 @@ export class HeaderPage implements OnInit {
return enterAnimation(baseEl).direction('reverse');
}
const modal = await this.modalController.create({
enterAnimation,
leaveAnimation,
@@ -156,6 +158,10 @@ export class HeaderPage implements OnInit {
}
});
await modal.present();
modal.onDidDismiss().then(()=>{
this.notificationLengthData()
})
}