diff --git a/frontend/src/AddSeries/AddNewSeries/AddNewSeriesModalContent.css b/frontend/src/AddSeries/AddNewSeries/AddNewSeriesModalContent.css index c0b327225..1ece5b8e9 100644 --- a/frontend/src/AddSeries/AddNewSeries/AddNewSeriesModalContent.css +++ b/frontend/src/AddSeries/AddNewSeries/AddNewSeriesModalContent.css @@ -25,23 +25,24 @@ margin-left: 8px; } -.searchForMissingEpisodesLabelContainer { +.searchLabelContainer { display: flex; + justify-content: flex-end; margin-top: 2px; } -.searchForMissingEpisodesLabel { +.searchLabel { margin-right: 8px; font-weight: normal; } -.searchForMissingEpisodesContainer { +.searchInputContainer { composes: container from '~Components/Form/CheckInput.css'; flex: 0 1 0; } -.searchForMissingEpisodesInput { +.searchInput { composes: input from '~Components/Form/CheckInput.css'; margin-top: 0; diff --git a/frontend/src/AddSeries/AddNewSeries/AddNewSeriesModalContent.js b/frontend/src/AddSeries/AddNewSeries/AddNewSeriesModalContent.js index b035f1d06..5a0bfdf6a 100644 --- a/frontend/src/AddSeries/AddNewSeries/AddNewSeriesModalContent.js +++ b/frontend/src/AddSeries/AddNewSeries/AddNewSeriesModalContent.js @@ -31,7 +31,8 @@ class AddNewSeriesModalContent extends Component { seriesType: props.initialSeriesType === seriesTypes.STANDARD ? props.seriesType.value : props.initialSeriesType, - searchForMissingEpisodes: false + searchForMissingEpisodes: false, + searchForCutoffUnmetEpisodes: false }; } @@ -48,6 +49,10 @@ class AddNewSeriesModalContent extends Component { this.setState({ searchForMissingEpisodes: value }); } + onSearchForCutoffUnmetEpisodesChange = ({ value }) => { + this.setState({ searchForCutoffUnmetEpisodes: value }); + } + onQualityProfileIdChange = ({ value }) => { this.props.onInputChange({ name: 'qualityProfileId', value: parseInt(value) }); } @@ -59,10 +64,15 @@ class AddNewSeriesModalContent extends Component { onAddSeriesPress = () => { const { searchForMissingEpisodes, + searchForCutoffUnmetEpisodes, seriesType } = this.state; - this.props.onAddSeriesPress(searchForMissingEpisodes, seriesType); + this.props.onAddSeriesPress( + searchForMissingEpisodes, + searchForCutoffUnmetEpisodes, + seriesType + ); } // @@ -91,6 +101,11 @@ class AddNewSeriesModalContent extends Component { ...otherProps } = this.props; + const { + searchForMissingEpisodes, + searchForCutoffUnmetEpisodes + } = this.state; + return ( @@ -246,19 +261,35 @@ class AddNewSeriesModalContent extends Component { -