diff options
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/video/abstract-video-list.ts | 4 | ||||
-rw-r--r-- | client/src/app/shared/video/sort-field.type.ts | 1 |
2 files changed, 3 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 642a85f65..d8a4b03af 100644 --- a/client/src/app/shared/video/abstract-video-list.ts +++ b/client/src/app/shared/video/abstract-video-list.ts | |||
@@ -24,8 +24,8 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy { | |||
24 | itemsPerPage: 10, | 24 | itemsPerPage: 10, |
25 | totalItems: null | 25 | totalItems: null |
26 | } | 26 | } |
27 | sort: VideoSortField = '-createdAt' | 27 | sort: VideoSortField = '-publishedAt' |
28 | defaultSort: VideoSortField = '-createdAt' | 28 | defaultSort: VideoSortField = '-publishedAt' |
29 | syndicationItems = [] | 29 | syndicationItems = [] |
30 | 30 | ||
31 | loadOnInit = true | 31 | loadOnInit = true |
diff --git a/client/src/app/shared/video/sort-field.type.ts b/client/src/app/shared/video/sort-field.type.ts index 2a3ae4ddd..2192745b9 100644 --- a/client/src/app/shared/video/sort-field.type.ts +++ b/client/src/app/shared/video/sort-field.type.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | export type VideoSortField = 'name' | '-name' | 1 | export type VideoSortField = 'name' | '-name' |
2 | | 'duration' | '-duration' | 2 | | 'duration' | '-duration' |
3 | | 'publishedAt' | '-publishedAt' | ||
3 | | 'createdAt' | '-createdAt' | 4 | | 'createdAt' | '-createdAt' |
4 | | 'views' | '-views' | 5 | | 'views' | '-views' |
5 | | 'likes' | '-likes' | 6 | | 'likes' | '-likes' |