]>
Commit | Line | Data |
---|---|---|
4c8749cb | 1 | <h1 class="visually-hidden" i18n>Notifications</h1> |
2f1548fd | 2 | <div class="header"> |
457bb213 | 3 | <a routerLink="/my-account/settings" fragment="notifications" i18n> |
6ad971d5 | 4 | <my-global-icon iconName="cog" aria-hidden="true"></my-global-icon> |
457bb213 C |
5 | Notification preferences |
6 | </a> | |
2f1548fd | 7 | |
4c8749cb | 8 | <div class="peertube-select-container peertube-select-button ms-2 me-2"> |
4f5d0459 | 9 | <select [(ngModel)]="notificationSortType" (ngModelChange)="onChangeSortColumn()" class="form-control"> |
654a188f | 10 | <option value="undefined" disabled>Sort by</option> |
4f5d0459 RK |
11 | <option value="createdAt" i18n>Newest first</option> |
12 | <option value="read" [disabled]="!hasUnreadNotifications()" i18n>Unread first</option> | |
654a188f RK |
13 | </select> |
14 | </div> | |
15 | ||
4c8749cb | 16 | <button class="btn ms-auto" [disabled]="!hasUnreadNotifications()" (click)="markAllAsRead()"> |
bc6f8863 | 17 | <ng-container *ngIf="hasUnreadNotifications()"> |
51a83970 | 18 | <my-global-icon iconName="tick" aria-hidden="true"></my-global-icon> |
10475dea | 19 | |
bc6f8863 C |
20 | <span i18n>Mark all as read</span> |
21 | </ng-container> | |
22 | ||
23 | <ng-container *ngIf="!hasUnreadNotifications()"> | |
6ad971d5 | 24 | <my-global-icon iconName="circle-tick" aria-hidden="true"></my-global-icon> |
bc6f8863 C |
25 | |
26 | <span i18n>All read</span> | |
27 | </ng-container> | |
457bb213 | 28 | </button> |
2f1548fd C |
29 | </div> |
30 | ||
31 | <my-user-notifications #userNotification></my-user-notifications> |