mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
feat(config): add missing videos sort options in admin
This commit is contained in:
parent
21e7302014
commit
c6820dc4a5
2 changed files with 8 additions and 1 deletions
|
@ -44,9 +44,13 @@
|
||||||
|
|
||||||
<div class="peertube-select-container">
|
<div class="peertube-select-container">
|
||||||
<select id="trendingVideosAlgorithmsDefault" formControlName="default" class="form-control">
|
<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="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="most-liked">Most liked videos</option>
|
||||||
|
<option i18n value="views">Global views</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -177,6 +177,9 @@ export class VideosListCommonPageComponent implements OnInit, OnDestroy, Disable
|
||||||
case 'best':
|
case 'best':
|
||||||
return '-hot'
|
return '-hot'
|
||||||
|
|
||||||
|
case 'name':
|
||||||
|
return 'name'
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return '-' + algorithm as VideoSortField
|
return '-' + algorithm as VideoSortField
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue