mirror of https://github.com/Chocobozzz/PeerTube
feat(config): add missing videos sort options in admin
parent
21e7302014
commit
c6820dc4a5
|
@ -44,9 +44,13 @@
|
|||
|
||||
<div class="peertube-select-container">
|
||||
<select id="trendingVideosAlgorithmsDefault" formControlName="default" class="form-control">
|
||||
<option i18n value="publishedAt">Recently added videos</option>
|
||||
<option i18n value="originallyPublishedAt">Original publication date</option>
|
||||
<option i18n value="name">Name</option>
|
||||
<option i18n value="hot">Hot videos</option>
|
||||
<option i18n value="most-viewed">Most viewed videos</option>
|
||||
<option i18n value="most-viewed">Recent views</option>
|
||||
<option i18n value="most-liked">Most liked videos</option>
|
||||
<option i18n value="views">Global views</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -177,6 +177,9 @@ export class VideosListCommonPageComponent implements OnInit, OnDestroy, Disable
|
|||
case 'best':
|
||||
return '-hot'
|
||||
|
||||
case 'name':
|
||||
return 'name'
|
||||
|
||||
default:
|
||||
return '-' + algorithm as VideoSortField
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue