From 136cce4d6744bef7fd316b929157c1e4e3984fe3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 15 May 2018 08:47:47 +0200 Subject: Use publishedAt by default in videos sort --- client/src/app/shared/video/abstract-video-list.ts | 4 ++-- client/src/app/shared/video/sort-field.type.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'client/src/app/shared') 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 { itemsPerPage: 10, totalItems: null } - sort: VideoSortField = '-createdAt' - defaultSort: VideoSortField = '-createdAt' + sort: VideoSortField = '-publishedAt' + defaultSort: VideoSortField = '-publishedAt' syndicationItems = [] 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 @@ export type VideoSortField = 'name' | '-name' | 'duration' | '-duration' + | 'publishedAt' | '-publishedAt' | 'createdAt' | '-createdAt' | 'views' | '-views' | 'likes' | '-likes' -- cgit v1.2.3