feat(config): add missing videos sort options in admin

pull/5486/head
paulienm 2022-12-17 22:45:37 +01:00 committed by Chocobozzz
parent 21e7302014
commit c6820dc4a5
2 changed files with 8 additions and 1 deletions

View File

@ -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>

View File

@ -177,6 +177,9 @@ export class VideosListCommonPageComponent implements OnInit, OnDestroy, Disable
case 'best':
return '-hot'
case 'name':
return 'name'
default:
return '-' + algorithm as VideoSortField
}