X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fsearch%2Fsearch-filters.component.ts;h=a40648eb4da80ee7085631aec5e0b700d66dd099;hb=cddf45035389cc7d9003ea2b64fff3c28cd368d9;hp=4219f99a9642dcfdeaaf86b025ab6cb1fc2ed6d7;hpb=0b18f4aa80df8868bf34605423c7a298dffbb2aa;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/search/search-filters.component.ts b/client/src/app/search/search-filters.component.ts index 4219f99a9..a40648eb4 100644 --- a/client/src/app/search/search-filters.component.ts +++ b/client/src/app/search/search-filters.component.ts @@ -23,6 +23,7 @@ export class SearchFiltersComponent implements OnInit { videoLanguages: VideoConstant[] = [] publishedDateRanges: { id: string, label: string }[] = [] + sorts: { id: string, label: string }[] = [] durationRanges: { id: string, label: string }[] = [] publishedDateRange: string @@ -59,15 +60,30 @@ export class SearchFiltersComponent implements OnInit { this.durationRanges = [ { id: 'short', - label: this.i18n('Short (< 4 minutes)') + label: this.i18n('Short (< 4 min)') }, { id: 'long', - label: this.i18n('Long (> 10 minutes)') + label: this.i18n('Long (> 10 min)') }, { id: 'medium', - label: this.i18n('Medium (4-10 minutes)') + label: this.i18n('Medium (4-10 min)') + } + ] + + this.sorts = [ + { + id: '-match', + label: this.i18n('Relevance') + }, + { + id: '-publishedAt', + label: this.i18n('Publish date') + }, + { + id: '-views', + label: this.i18n('Views') } ] }