1 <ng-template #notificationNumber
>
2 <div *
ngIf=
"unreadNotifications > 0 && unreadNotifications < 100" class=
"unread-notifications">{{ unreadNotifications }}
</div>
3 <div *
ngIf=
"unreadNotifications >= 100" class=
"unread-notifications">99+
</div>
7 [ngbPopover]=
"popContent" autoClose=
"outside" placement=
"bottom" container={this}
popoverClass=
"popover-notifications"
8 i18n-title
title=
"View your notifications"
9 class=
"border-0 text-start" [ngClass]=
"{ 'notification-inbox-popover': true, 'shown': opened, 'hidden': isInMobileView }"
10 #
popover=
"ngbPopover" (shown)=
"onPopoverShown()" (hidden)=
"onPopoverHidden()"
12 <ng-container *
ngTemplateOutlet=
"notificationNumber"></ng-container>
14 <my-global-icon iconName=
"bell"></my-global-icon>
17 <div *
ngIf=
"isInMobileView" i18n-title
title=
"View your notifications" class=
"notification-inbox-link">
18 <ng-container *
ngTemplateOutlet=
"notificationNumber"></ng-container>
20 <a routerLink=
"/my-account/notifications" routerLinkActive=
"active" #link (click)=
"onNavigate(link)">
21 <my-global-icon iconName=
"bell"></my-global-icon>
25 <ng-template #popContent
>
26 <div class=
"content" [ngClass]=
"{ loaded: loaded }">
27 <div class=
"notifications-header">
28 <div i18n
>Notifications
</div>
32 *
ngIf=
"unreadNotifications"
33 i18n-title
title=
"Mark all as read" class=
"me-2"
34 (click)=
"markAllAsRead()"
36 <my-global-icon iconName=
"tick"></my-global-icon>
40 i18n-title
title=
"Update your notification preferences"
41 routerLink=
"/my-account/settings" fragment=
"notifications"
42 #settingsNotifications (click)=
"onNavigate(settingsNotifications)"
44 <my-global-icon iconName=
"cog"></my-global-icon>
49 <div *
ngIf=
"!loaded" class=
"loader mt-4">
50 <my-loader size=
"xl" [loading]=
"!loaded"></my-loader>
53 <my-user-notifications
54 [ignoreLoadingBar]=
"true" [infiniteScroll]=
"false" [itemsPerPage]=
"10"
55 [markAllAsReadSubject]=
"markAllAsReadSubject" (notificationsLoaded)=
"onNotificationLoaded()"
56 ></my-user-notifications>
58 <a *
ngIf=
"loaded" class=
"all-notifications" routerLink=
"/my-account/notifications" #notifications (click)=
"onNavigate(notifications)">
59 <my-global-icon class=
"me-1" iconName=
"bell" aria-hidden=
"true"></my-global-icon>
60 <span i18n
>See all your notifications
</span>