|
|
|
@ -15,25 +15,25 @@ |
|
|
|
limitations under the License. |
|
|
|
|
|
|
|
--> |
|
|
|
<section fxLayout="row" fxLayoutAlign="space-between center" style="margin-bottom: 4px"> |
|
|
|
<section fxLayout="row" fxLayoutAlign="space-between center" style="margin-bottom: 4px; min-height: 36px"> |
|
|
|
<div style="font-weight: 500; letter-spacing: .25px" translate>notification.notification</div> |
|
|
|
<button mat-button color="primary" |
|
|
|
[disabled]="!(notifications$ | async).length" |
|
|
|
*ngIf="(notifications$ | async).length" |
|
|
|
(click)="markAsAllRead($event)"> |
|
|
|
{{ 'notification.mark-all-as-read' | translate }} |
|
|
|
</button> |
|
|
|
</section> |
|
|
|
<mat-divider></mat-divider> |
|
|
|
<section style="min-height: 100px; overflow: auto"> |
|
|
|
<div *ngFor="let notification of (notifications$ | async); let last = last"> |
|
|
|
<tb-notification [notification]="notification" |
|
|
|
[onClose]="onClose" |
|
|
|
(markAsRead)="markAsRead($event)"> |
|
|
|
</tb-notification> |
|
|
|
<mat-divider *ngIf="!last" style="margin-bottom: 4px"></mat-divider> |
|
|
|
</div> |
|
|
|
</section> |
|
|
|
<div *ngIf="(notifications$ | async).length"> |
|
|
|
<div *ngIf="(notifications$ | async).length; else emptyNotification"> |
|
|
|
<section style="min-height: 100px; overflow: auto"> |
|
|
|
<div *ngFor="let notification of (notifications$ | async); let last = last"> |
|
|
|
<tb-notification [notification]="notification" |
|
|
|
[onClose]="onClose" |
|
|
|
(markAsRead)="markAsRead($event)"> |
|
|
|
</tb-notification> |
|
|
|
<mat-divider *ngIf="!last" style="margin-bottom: 4px"></mat-divider> |
|
|
|
</div> |
|
|
|
</section> |
|
|
|
<mat-divider></mat-divider> |
|
|
|
<section fxLayoutAlign="center center"> |
|
|
|
<button fxFlex mat-button color="primary" (click)="viewAll($event)"> |
|
|
|
@ -41,3 +41,7 @@ |
|
|
|
</button> |
|
|
|
</section> |
|
|
|
</div> |
|
|
|
<ng-template #emptyNotification> |
|
|
|
<img src="assets/notification-bell.svg" alt="empty notification" style="margin: 20px 24%"> |
|
|
|
<span style="text-align: center; margin-bottom: 12px" translate>notification.no-notifications-yet</span> |
|
|
|
</ng-template> |
|
|
|
|