mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
parent
a9b16d298f
commit
d8066ec172
7 changed files with 30 additions and 3 deletions
|
@ -36,6 +36,11 @@ export const defaultState = {
|
|||
sortPredicates: {
|
||||
rating: function(item) {
|
||||
return item.ratings.value;
|
||||
},
|
||||
size: function(item) {
|
||||
const { statistics = {} } = item;
|
||||
|
||||
return statistics.sizeOnDisk || 0;
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -81,6 +86,12 @@ export const defaultState = {
|
|||
isSortable: true,
|
||||
isVisible: false
|
||||
},
|
||||
{
|
||||
name: 'size',
|
||||
label: () => translate('Size'),
|
||||
isSortable: true,
|
||||
isVisible: false
|
||||
},
|
||||
{
|
||||
name: 'rating',
|
||||
label: () => translate('Rating'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue