Show only 10 videos by default

master
Nikola Forró 6 years ago
parent d4456c19c3
commit 3315fb1ff3

@ -73,7 +73,7 @@
</mat-table> </mat-table>
<mat-paginator [length]="dataSource?.count$ | async" [pageSize]="20" <mat-paginator [length]="dataSource?.count$ | async" [pageSize]="10"
[pageSizeOptions]="[10, 20, 50, 100, 200]"></mat-paginator> [pageSizeOptions]="[10, 20, 50, 100, 200]"></mat-paginator>
</div> </div>

@ -53,7 +53,7 @@ export class VideosComponent implements OnInit, AfterViewInit {
ngOnInit() { ngOnInit() {
this.dataSource = new VideosDataSource(this.commentsService); this.dataSource = new VideosDataSource(this.commentsService);
this.dataSource.loadVideos('', 'recorded_at', 'desc', 0, 20); this.dataSource.loadVideos('', 'recorded_at', 'desc', 0, 10);
} }
ngAfterViewInit() { ngAfterViewInit() {

Loading…
Cancel
Save