mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-27 23:06:29 -04:00
New: Option to show release group column on series list
This commit is contained in:
committed by
GitHub
parent
acdf02d569
commit
f1d07f74ee
@@ -131,6 +131,18 @@ export const filterPredicates = {
|
||||
return predicate(item.ratings.value * 10, filterValue);
|
||||
},
|
||||
|
||||
releaseGroups: function(item, filterValue, type) {
|
||||
const { statistics = {} } = item;
|
||||
|
||||
const {
|
||||
releaseGroups = []
|
||||
} = statistics;
|
||||
|
||||
const predicate = filterTypePredicates[type];
|
||||
|
||||
return predicate(releaseGroups, filterValue);
|
||||
},
|
||||
|
||||
seasonCount: function(item, filterValue, type) {
|
||||
const predicate = filterTypePredicates[type];
|
||||
const seasonCount = item.statistics ? item.statistics.seasonCount : 0;
|
||||
@@ -261,6 +273,11 @@ export const filterBuilderProps = [
|
||||
return tagList.sort(sortByName);
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'releaseGroups',
|
||||
label: 'Release Groups',
|
||||
type: filterBuilderTypes.ARRAY
|
||||
},
|
||||
{
|
||||
name: 'ratings',
|
||||
label: 'Rating',
|
||||
|
||||
@@ -167,6 +167,12 @@ export const defaultState = {
|
||||
isSortable: false,
|
||||
isVisible: false
|
||||
},
|
||||
{
|
||||
name: 'releaseGroups',
|
||||
label: 'Release Groups',
|
||||
isSortable: false,
|
||||
isVisible: false
|
||||
},
|
||||
{
|
||||
name: 'tags',
|
||||
label: 'Tags',
|
||||
|
||||
Reference in New Issue
Block a user