diff options
Diffstat (limited to 'client/src/app/shared/video')
-rw-r--r-- | client/src/app/shared/video/abstract-video-list.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/client/src/app/shared/video/abstract-video-list.ts b/client/src/app/shared/video/abstract-video-list.ts index 354373776..aaf376c81 100644 --- a/client/src/app/shared/video/abstract-video-list.ts +++ b/client/src/app/shared/video/abstract-video-list.ts | |||
@@ -10,7 +10,7 @@ import { Video } from './video.model' | |||
10 | export abstract class AbstractVideoList implements OnInit { | 10 | export abstract class AbstractVideoList implements OnInit { |
11 | pagination: ComponentPagination = { | 11 | pagination: ComponentPagination = { |
12 | currentPage: 1, | 12 | currentPage: 1, |
13 | itemsPerPage: 25, | 13 | itemsPerPage: 10, |
14 | totalItems: null | 14 | totalItems: null |
15 | } | 15 | } |
16 | sort: SortField = '-createdAt' | 16 | sort: SortField = '-createdAt' |
@@ -26,6 +26,9 @@ export abstract class AbstractVideoList implements OnInit { | |||
26 | protected abstract currentRoute: string | 26 | protected abstract currentRoute: string |
27 | 27 | ||
28 | abstract titlePage: string | 28 | abstract titlePage: string |
29 | |||
30 | protected otherParams = {} | ||
31 | |||
29 | private loadedPages: { [ id: number ]: boolean } = {} | 32 | private loadedPages: { [ id: number ]: boolean } = {} |
30 | 33 | ||
31 | abstract getVideosObservable (): Observable<{ videos: Video[], totalVideos: number}> | 34 | abstract getVideosObservable (): Observable<{ videos: Video[], totalVideos: number}> |
@@ -119,7 +122,7 @@ export abstract class AbstractVideoList implements OnInit { | |||
119 | page: this.pagination.currentPage | 122 | page: this.pagination.currentPage |
120 | } | 123 | } |
121 | 124 | ||
122 | return params | 125 | return Object.assign(params, this.otherParams) |
123 | } | 126 | } |
124 | 127 | ||
125 | protected loadRouteParams (routeParams: { [ key: string ]: any }) { | 128 | protected loadRouteParams (routeParams: { [ key: string ]: any }) { |