diff options
Diffstat (limited to 'client/src/app/videos/video-list/video-list.component.html')
-rw-r--r-- | client/src/app/videos/video-list/video-list.component.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/client/src/app/videos/video-list/video-list.component.html b/client/src/app/videos/video-list/video-list.component.html index 52abc3dc2..0e17ef2c4 100644 --- a/client/src/app/videos/video-list/video-list.component.html +++ b/client/src/app/videos/video-list/video-list.component.html | |||
@@ -1,8 +1,8 @@ | |||
1 | <div class="row videos-info"> | 1 | <div class="row videos-info"> |
2 | <div class="col-md-9 videos-total-results"> | 2 | <div class="col-md-9 videos-total-results"> |
3 | {{ pagination.total }} videos | 3 | <span *ngIf="pagination.totalItems !== null">{{ pagination.totalItems }} videos</span> |
4 | 4 | ||
5 | <my-loader [loading]="loading"></my-loader> | 5 | <my-loader [loading]="loading | async"></my-loader> |
6 | </div> | 6 | </div> |
7 | <my-video-sort class="col-md-3" [currentSort]="sort" (sort)="onSort($event)"></my-video-sort> | 7 | <my-video-sort class="col-md-3" [currentSort]="sort" (sort)="onSort($event)"></my-video-sort> |
8 | </div> | 8 | </div> |
@@ -14,7 +14,7 @@ | |||
14 | </my-video-miniature> | 14 | </my-video-miniature> |
15 | </div> | 15 | </div> |
16 | 16 | ||
17 | <pagination | 17 | <pagination *ngIf="pagination.totalItems !== null" |
18 | [totalItems]="pagination.total" [itemsPerPage]="pagination.itemsPerPage" [maxSize]="6" [boundaryLinks]="true" [rotate]="false" | 18 | [totalItems]="pagination.totalItems" [itemsPerPage]="pagination.itemsPerPage" [maxSize]="6" [boundaryLinks]="true" [rotate]="false" |
19 | (ngModelChange)="getVideos()" [(ngModel)]="pagination.currentPage" | 19 | [(ngModel)]="pagination.currentPage" (pageChanged)="getVideos()" |
20 | ></pagination> | 20 | ></pagination> |