mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-10 06:41:00 +03:00
17 lines
1018 B
HTML
17 lines
1018 B
HTML
<div *ngFor="let notification of notifications; let i = index;">
|
|
<mat-divider class="notification-divider"></mat-divider>
|
|
<div class="notification-text">
|
|
<ng-container *ngIf="NOTIFICATION_PREFIX[notification.type]">
|
|
{{NOTIFICATION_PREFIX[notification.type]}}
|
|
</ng-container>
|
|
<ng-container *ngIf="NOTIFICATION_SUFFIX_KEY[notification.type]">
|
|
{{notification['data'][NOTIFICATION_SUFFIX_KEY[notification.type]]}}
|
|
</ng-container>
|
|
</div>
|
|
<div *ngIf="notification.actions?.length > 0">
|
|
<button matTooltip="Remove" i18n-matTooltip="Remove" (click)="emitDeleteNotification(notification.uid)" mat-icon-button><mat-icon>close</mat-icon></button>
|
|
<span *ngFor="let action of notification.actions">
|
|
<button [matTooltip]="NOTIFICATION_ACTION_TO_STRING[action]" (click)="emitNotificationAction(notification, action)" mat-icon-button><mat-icon>{{NOTIFICATION_ICON[action]}}</mat-icon></button>
|
|
</span>
|
|
</div>
|
|
</div> |