separate notification responsability

This commit is contained in:
Peter Maquiran
2023-09-19 10:40:39 +01:00
parent 4cea8358fc
commit be3f1e8f15
4 changed files with 132 additions and 17 deletions
+9 -4
View File
@@ -149,14 +149,19 @@ export class HeaderPage implements OnInit {
console.log('Get notification data',)
this.notificationLength = value.length;
console.log('Call notification data', this.notificationLength)
this.zone.run(() => {
this.notificationLength = value.length;
console.log('Call notification data', this.notificationLength)
});
}).catch((error) => {
if (!error) {
console.error('header storage get notification', error)
this.notificationLength = 0;
this.zone.run(() => {
console.error('header storage get notification', error)
this.notificationLength = 0;
});
} else {
console.error('header storage get notification', error)
}