2019-01-08 10:26:41 +00:00
|
|
|
<div
|
2020-12-13 13:54:12 +00:00
|
|
|
[ngbPopover]="popContent" autoClose="outside" placement="bottom" container={this} popoverClass="popover-notifications"
|
|
|
|
i18n-title title="View your notifications" [ngClass]="{ 'notification-inbox-popover': true, 'shown': opened, 'hidden': isInMobileView }"
|
|
|
|
#popover="ngbPopover" (shown)="onPopoverShown()" (hidden)="onPopoverHidden()"
|
2019-01-08 10:26:41 +00:00
|
|
|
>
|
|
|
|
<div *ngIf="unreadNotifications > 0" class="unread-notifications">{{ unreadNotifications }}</div>
|
|
|
|
|
2020-12-13 13:54:12 +00:00
|
|
|
<my-global-icon iconName="bell"></my-global-icon>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div *ngIf="isInMobileView" i18n-title title="View your notifications" class="notification-inbox-link">
|
|
|
|
<div *ngIf="unreadNotifications > 0" class="unread-notifications">{{ unreadNotifications }}</div>
|
|
|
|
|
|
|
|
<a routerLink="/my-account/notifications" routerLinkActive="active" #link (click)="onNavigate(link)">
|
|
|
|
<my-global-icon iconName="bell"></my-global-icon>
|
|
|
|
</a>
|
2019-01-08 10:26:41 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<ng-template #popContent>
|
2019-02-20 09:16:04 +00:00
|
|
|
<div class="content" [ngClass]="{ loaded: loaded }">
|
|
|
|
<div class="notifications-header">
|
|
|
|
<div i18n>Notifications</div>
|
2019-01-08 10:26:41 +00:00
|
|
|
|
2019-12-19 13:51:35 +00:00
|
|
|
<div>
|
|
|
|
<button
|
|
|
|
*ngIf="unreadNotifications"
|
2022-06-08 14:14:24 +00:00
|
|
|
i18n-title title="Mark all as read" class="glyphicon glyphicon-ok me-2"
|
2019-12-19 13:51:35 +00:00
|
|
|
(click)="markAllAsRead()"
|
|
|
|
></button>
|
|
|
|
<a
|
|
|
|
i18n-title title="Update your notification preferences" class="glyphicon glyphicon-cog"
|
|
|
|
routerLink="/my-account/settings" fragment="notifications"
|
2020-08-17 08:13:31 +00:00
|
|
|
#settingsNotifications (click)="onNavigate(settingsNotifications)"
|
2019-12-19 13:51:35 +00:00
|
|
|
></a>
|
|
|
|
</div>
|
2019-02-20 09:16:04 +00:00
|
|
|
</div>
|
|
|
|
|
2019-12-20 16:49:57 +00:00
|
|
|
<div *ngIf="!loaded" class="loader mt-4">
|
2019-02-20 09:16:04 +00:00
|
|
|
<my-loader [loading]="!loaded"></my-loader>
|
|
|
|
</div>
|
2019-01-08 10:26:41 +00:00
|
|
|
|
2019-02-20 09:16:04 +00:00
|
|
|
<my-user-notifications
|
2020-02-10 13:25:38 +00:00
|
|
|
[ignoreLoadingBar]="true" [infiniteScroll]="false" [itemsPerPage]="10"
|
2020-01-06 14:59:17 +00:00
|
|
|
[markAllAsReadSubject]="markAllAsReadSubject" (notificationsLoaded)="onNotificationLoaded()"
|
2019-02-20 09:16:04 +00:00
|
|
|
></my-user-notifications>
|
2019-01-08 10:26:41 +00:00
|
|
|
|
2020-08-17 08:13:31 +00:00
|
|
|
<a *ngIf="loaded" class="all-notifications" routerLink="/my-account/notifications" #notifications (click)="onNavigate(notifications)">
|
2022-06-08 14:14:24 +00:00
|
|
|
<my-global-icon class="me-1" iconName="bell" aria-hidden="true"></my-global-icon>
|
2019-12-19 13:51:35 +00:00
|
|
|
<span i18n>See all your notifications</span>
|
|
|
|
</a>
|
2019-02-20 09:16:04 +00:00
|
|
|
</div>
|
2019-01-08 10:26:41 +00:00
|
|
|
</ng-template>
|