mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 01:39:37 +02:00
Add ability to sort videos by file size
This commit is contained in:
parent
b080ccc3ee
commit
4596ec2a9f
4 changed files with 55 additions and 8 deletions
|
@ -110,7 +110,19 @@ const SORTABLE_COLUMNS = {
|
|||
RUNNER_REGISTRATION_TOKENS: [ 'createdAt' ],
|
||||
RUNNER_JOBS: [ 'updatedAt', 'createdAt', 'priority', 'state', 'progress' ],
|
||||
|
||||
VIDEOS: [ 'name', 'duration', 'createdAt', 'publishedAt', 'originallyPublishedAt', 'views', 'likes', 'trending', 'hot', 'best' ],
|
||||
VIDEOS: [
|
||||
'name',
|
||||
'duration',
|
||||
'createdAt',
|
||||
'publishedAt',
|
||||
'originallyPublishedAt',
|
||||
'views',
|
||||
'likes',
|
||||
'trending',
|
||||
'hot',
|
||||
'best',
|
||||
'localVideoFilesSize'
|
||||
],
|
||||
|
||||
// Don't forget to update peertube-search-index with the same values
|
||||
VIDEOS_SEARCH: [ 'name', 'duration', 'createdAt', 'publishedAt', 'originallyPublishedAt', 'views', 'likes', 'match' ],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue