]>
Commit | Line | Data |
---|---|---|
ed5bb517 K |
1 | <h1> |
2 | <my-global-icon iconName="history" aria-hidden="true"></my-global-icon> | |
d8b34ee5 | 3 | <ng-container i18n>My watch history</ng-container> <span class="badge badge-secondary">{{ pagination.totalItems }}</span> |
ed5bb517 K |
4 | </h1> |
5 | ||
276d9652 | 6 | <div class="top-buttons"> |
0f7407d9 | 7 | <div class="search-wrapper"> |
dd24f1bb | 8 | <my-advanced-input-filter [emitOnInit]="false" (search)="onSearch($event)"></my-advanced-input-filter> |
d8b34ee5 RK |
9 | </div> |
10 | ||
0f7407d9 | 11 | <div class="history-switch"> |
4f926722 | 12 | <my-input-switch [(ngModel)]="videosHistoryEnabled" (ngModelChange)="onVideosHistoryChange()"></my-input-switch> |
d8b34ee5 | 13 | <label i18n>Track watch history</label> |
276d9652 C |
14 | </div> |
15 | ||
d01b2fb9 | 16 | <button class="delete-history" (click)="deleteHistory()" i18n> |
6ad971d5 | 17 | <my-global-icon iconName="delete" aria-hidden="true"></my-global-icon> |
d01b2fb9 C |
18 | Delete history |
19 | </button> | |
276d9652 C |
20 | </div> |
21 | ||
2e46eb97 C |
22 | <my-videos-selection |
23 | [pagination]="pagination" | |
24 | [(videosModel)]="videos" | |
25 | [miniatureDisplayOptions]="miniatureDisplayOptions" | |
26 | [titlePage]="titlePage" | |
27 | [getVideosObservableFunction]="getVideosObservableFunction" | |
28 | [user]="user" | |
2e46eb97 C |
29 | i18n-noResultMessage noResultMessage="You don't have any video in your watch history yet." |
30 | [enableSelection]="false" | |
dd24f1bb | 31 | [disabled]="disabled" |
2e46eb97 C |
32 | #videosSelection |
33 | ></my-videos-selection> |