1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-11 12:02:35 +02:00

Fixed: dispatchClearPendingChanges on some Settings Sections

This commit is contained in:
Qstick 2020-07-02 21:42:04 -04:00
parent 7f201c6677
commit f29e7557dd
4 changed files with 5 additions and 4 deletions

View File

@ -64,7 +64,7 @@ class DownloadClientOptionsConnector extends Component {
}
componentWillUnmount() {
this.props.dispatchClearPendingChanges({ section: SECTION });
this.props.dispatchClearPendingChanges({ section: `settings.${SECTION}` });
}
//

View File

@ -64,7 +64,7 @@ class IndexerOptionsConnector extends Component {
}
componentWillUnmount() {
this.props.dispatchClearPendingChanges({ section: SECTION });
this.props.dispatchClearPendingChanges({ section: `settings.${SECTION}` });
}
//

View File

@ -50,7 +50,7 @@ class NamingConnector extends Component {
}
componentWillUnmount() {
this.props.clearPendingChanges({ section: SECTION });
this.props.clearPendingChanges({ section: `settings.${SECTION}` });
}
//

View File

@ -112,7 +112,8 @@ export default {
[SELECT_INDEXER_SCHEMA]: (state, { payload }) => {
return selectProviderSchema(state, section, payload, (selectedSchema) => {
selectedSchema.enableRss = selectedSchema.supportsRss;
selectedSchema.enableSearch = selectedSchema.supportsSearch;
selectedSchema.enableAutomaticSearch = selectedSchema.supportsSearch;
selectedSchema.enableInteractiveSearch = selectedSchema.supportsSearch;
return selectedSchema;
});