add notification

This commit is contained in:
Peter Maquiran
2021-08-31 09:11:41 +01:00
parent 6b61630abc
commit f9e031254f
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -82,7 +82,7 @@
<div class="profile-text">
<ion-label>{{profileLabel(loggeduser.Profile)}}</ion-label>
<div *ngIf="this.notificationLength > 0 && !production" class="icon-badge" style="right: -18px;top: -9px;" >{{this.notificationLength}}</div>
<div *ngIf="this.notificationLength > 0 && !production" class="icon-badge" style="right: -18px;top: -9px;" >{{notificationLength}}</div>
</div>
</div>
+2
View File
@@ -44,6 +44,8 @@ export class HeaderPage implements OnInit {
ngOnInit() {
this.hideSearch();
this.notificationLengthData();
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
console.log('Notifications not supported')
this.UpdateNotificationCount();