mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 20:12:41 +02:00
Fixed: Status Filter using Series Filter Options
This commit is contained in:
parent
bba5b425b3
commit
83eeb747dc
@ -10,7 +10,7 @@ import IndexerFilterBuilderRowValueConnector from './IndexerFilterBuilderRowValu
|
|||||||
import ProtocolFilterBuilderRowValue from './ProtocolFilterBuilderRowValue';
|
import ProtocolFilterBuilderRowValue from './ProtocolFilterBuilderRowValue';
|
||||||
import QualityFilterBuilderRowValueConnector from './QualityFilterBuilderRowValueConnector';
|
import QualityFilterBuilderRowValueConnector from './QualityFilterBuilderRowValueConnector';
|
||||||
import QualityProfileFilterBuilderRowValueConnector from './QualityProfileFilterBuilderRowValueConnector';
|
import QualityProfileFilterBuilderRowValueConnector from './QualityProfileFilterBuilderRowValueConnector';
|
||||||
import SeriesStatusFilterBuilderRowValue from './SeriesStatusFilterBuilderRowValue';
|
import MovieStatusFilterBuilderRowValue from './MovieStatusFilterBuilderRowValue';
|
||||||
import TagFilterBuilderRowValueConnector from './TagFilterBuilderRowValueConnector';
|
import TagFilterBuilderRowValueConnector from './TagFilterBuilderRowValueConnector';
|
||||||
import styles from './FilterBuilderRow.css';
|
import styles from './FilterBuilderRow.css';
|
||||||
|
|
||||||
@ -68,8 +68,8 @@ function getRowValueConnector(selectedFilterBuilderProp) {
|
|||||||
case filterBuilderValueTypes.QUALITY_PROFILE:
|
case filterBuilderValueTypes.QUALITY_PROFILE:
|
||||||
return QualityProfileFilterBuilderRowValueConnector;
|
return QualityProfileFilterBuilderRowValueConnector;
|
||||||
|
|
||||||
case filterBuilderValueTypes.SERIES_STATUS:
|
case filterBuilderValueTypes.MOVIE_STATUS:
|
||||||
return SeriesStatusFilterBuilderRowValue;
|
return MovieStatusFilterBuilderRowValue;
|
||||||
|
|
||||||
case filterBuilderValueTypes.TAG:
|
case filterBuilderValueTypes.TAG:
|
||||||
return TagFilterBuilderRowValueConnector;
|
return TagFilterBuilderRowValueConnector;
|
||||||
|
@ -0,0 +1,20 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import FilterBuilderRowValue from './FilterBuilderRowValue';
|
||||||
|
|
||||||
|
const protocols = [
|
||||||
|
{ id: 'tba', name: 'TBA' },
|
||||||
|
{ id: 'announced', name: 'Announced' },
|
||||||
|
{ id: 'inCinemas', name: 'In Cinemas' },
|
||||||
|
{ id: 'released', name: 'Released' }
|
||||||
|
];
|
||||||
|
|
||||||
|
function MovieStatusFilterBuilderRowValue(props) {
|
||||||
|
return (
|
||||||
|
<FilterBuilderRowValue
|
||||||
|
tagList={protocols}
|
||||||
|
{...props}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default MovieStatusFilterBuilderRowValue;
|
@ -1,18 +0,0 @@
|
|||||||
import React from 'react';
|
|
||||||
import FilterBuilderRowValue from './FilterBuilderRowValue';
|
|
||||||
|
|
||||||
const protocols = [
|
|
||||||
{ id: 'continuing', name: 'Continuing' },
|
|
||||||
{ id: 'ended', name: 'Ended' }
|
|
||||||
];
|
|
||||||
|
|
||||||
function SeriesStatusFilterBuilderRowValue(props) {
|
|
||||||
return (
|
|
||||||
<FilterBuilderRowValue
|
|
||||||
tagList={protocols}
|
|
||||||
{...props}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default SeriesStatusFilterBuilderRowValue;
|
|
@ -6,5 +6,5 @@ export const INDEXER = 'indexer';
|
|||||||
export const PROTOCOL = 'protocol';
|
export const PROTOCOL = 'protocol';
|
||||||
export const QUALITY = 'quality';
|
export const QUALITY = 'quality';
|
||||||
export const QUALITY_PROFILE = 'qualityProfile';
|
export const QUALITY_PROFILE = 'qualityProfile';
|
||||||
export const SERIES_STATUS = 'seriesStatus';
|
export const MOVIE_STATUS = 'movieStatus';
|
||||||
export const TAG = 'tag';
|
export const TAG = 'tag';
|
||||||
|
@ -163,7 +163,7 @@ export const defaultState = {
|
|||||||
name: 'status',
|
name: 'status',
|
||||||
label: 'Status',
|
label: 'Status',
|
||||||
type: filterBuilderTypes.EXACT,
|
type: filterBuilderTypes.EXACT,
|
||||||
valueType: filterBuilderValueTypes.SERIES_STATUS
|
valueType: filterBuilderValueTypes.MOVIE_STATUS
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'studio',
|
name: 'studio',
|
||||||
|
@ -196,7 +196,7 @@ export const defaultState = {
|
|||||||
name: 'status',
|
name: 'status',
|
||||||
label: 'Status',
|
label: 'Status',
|
||||||
type: filterBuilderTypes.EXACT,
|
type: filterBuilderTypes.EXACT,
|
||||||
valueType: filterBuilderValueTypes.SERIES_STATUS
|
valueType: filterBuilderValueTypes.MOVIE_STATUS
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'studio',
|
name: 'studio',
|
||||||
|
Loading…
Reference in New Issue
Block a user