Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat(config): add missing videos sort options in admin
  • Loading branch information
PaulienM committed Dec 17, 2022
commit 7205e7418b5688e9916b5955470ec31d9b5d8ada
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ export class VideosListCommonPageComponent implements OnInit, OnDestroy, Disable
case 'best':
return '-hot'

case 'name':
return 'name'

default:
return '-' + algorithm as VideoSortField
}
Expand Down