mirror of
https://github.com/Radarr/Radarr
synced 2024-12-30 11:55:18 +00:00
New: Smart Filter Options for Studios in MovieIndex
This commit is contained in:
parent
ed24cd5b52
commit
fbc2566f70
1 changed files with 13 additions and 1 deletions
|
@ -187,7 +187,19 @@ export const defaultState = {
|
|||
{
|
||||
name: 'studio',
|
||||
label: 'Studio',
|
||||
type: filterBuilderTypes.STRING
|
||||
type: filterBuilderTypes.ARRAY,
|
||||
optionsSelector: function(items) {
|
||||
const tagList = items.reduce((acc, movie) => {
|
||||
acc.push({
|
||||
id: movie.studio,
|
||||
name: movie.studio
|
||||
});
|
||||
|
||||
return acc;
|
||||
}, []);
|
||||
|
||||
return tagList.sort(sortByName);
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'qualityProfileId',
|
||||
|
|
Loading…
Reference in a new issue