X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2Fvideo-list%2Fvideo-sort.component.ts;h=20979a3950ede88993ee7e54c8e0629d5d31bbe4;hb=1d49e1e27d63db1dfc9a7fd28c9902f488831a89;hp=c950fa8aa0d8714b6c4d94dd6e02cdc6de8db2b4;hpb=05a9feaa48cea560abd9561434a3479ab1021643;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/videos/video-list/video-sort.component.ts b/client/src/app/videos/video-list/video-sort.component.ts index c950fa8aa..20979a395 100644 --- a/client/src/app/videos/video-list/video-sort.component.ts +++ b/client/src/app/videos/video-list/video-sort.component.ts @@ -12,7 +12,7 @@ export class VideoSortComponent { @Input() currentSort: SortField; - sortChoices = { + sortChoices: { [ P in SortField ]: string } = { 'name': 'Name - Asc', '-name': 'Name - Desc', 'duration': 'Duration - Asc', @@ -20,7 +20,9 @@ export class VideoSortComponent { 'createdAt': 'Created Date - Asc', '-createdAt': 'Created Date - Desc', 'views': 'Views - Asc', - '-views': 'Views - Desc' + '-views': 'Views - Desc', + 'likes': 'Likes - Asc', + '-likes': 'Likes - Desc' }; get choiceKeys() {