mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
separate notification responsability
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user