1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-27 23:06:29 -04:00

Fixed: Cutoff unmet searches rejecting releases incorrectly

This commit is contained in:
Mark McDowall
2020-03-20 17:34:18 -07:00
parent 4ddf4a22a3
commit e23a879669
14 changed files with 101 additions and 62 deletions
@@ -100,7 +100,15 @@ class CutoffUnmet extends Component {
}
onSearchAllCutoffUnmetConfirmed = () => {
this.props.onSearchAllCutoffUnmetPress();
const {
selectedFilterKey,
onSearchAllCutoffUnmetPress
} = this.props;
// TODO: Custom filters will need to check whether there is a monitored
// filter once implemented.
onSearchAllCutoffUnmetPress(selectedFilterKey === 'monitored');
this.setState({ isConfirmSearchAllCutoffUnmetModalOpen: false });
}
@@ -130,9 +130,10 @@ class CutoffUnmetConnector extends Component {
});
}
onSearchAllCutoffUnmetPress = () => {
onSearchAllCutoffUnmetPress = (monitored) => {
this.props.executeCommand({
name: commandNames.CUTOFF_UNMET_EPISODE_SEARCH
name: commandNames.CUTOFF_UNMET_EPISODE_SEARCH,
monitored
});
}
+9 -1
View File
@@ -97,7 +97,15 @@ class Missing extends Component {
}
onSearchAllMissingConfirmed = () => {
this.props.onSearchAllMissingPress();
const {
selectedFilterKey,
onSearchAllMissingPress
} = this.props;
// TODO: Custom filters will need to check whether there is a monitored
// filter once implemented.
onSearchAllMissingPress(selectedFilterKey === 'monitored');
this.setState({ isConfirmSearchAllMissingModalOpen: false });
}
@@ -121,9 +121,10 @@ class MissingConnector extends Component {
});
}
onSearchAllMissingPress = () => {
onSearchAllMissingPress = (monitored) => {
this.props.executeCommand({
name: commandNames.MISSING_EPISODE_SEARCH
name: commandNames.MISSING_EPISODE_SEARCH,
monitored
});
}