New: Option to disable automatic search on import lists

This commit is contained in:
ta264
2020-08-19 22:44:06 +01:00
parent ede8b9aa4a
commit 9fc0a8d4d1
6 changed files with 42 additions and 3 deletions

View File

@@ -71,6 +71,7 @@ function EditImportListModalContent(props) {
name,
enableAutomaticAdd,
shouldMonitor,
shouldSearch,
rootFolderPath,
qualityProfileId,
metadataProfileId,
@@ -148,6 +149,18 @@ function EditImportListModalContent(props) {
/>
</FormGroup>
<FormGroup>
<FormLabel>Search for New Items</FormLabel>
<FormInputGroup
type={inputTypes.CHECK}
name="shouldSearch"
helpText={'Search indexers for newly added items. Use with caution for large lists.'}
{...shouldSearch}
onChange={onInputChange}
/>
</FormGroup>
<FormGroup>
<FormLabel>Root Folder</FormLabel>

View File

@@ -54,7 +54,8 @@ class ImportList extends Component {
const {
id,
name,
enableAutomaticAdd
enableAutomaticAdd,
shouldSearch
} = this.props;
return (
@@ -75,6 +76,12 @@ class ImportList extends Component {
</Label>
}
{
shouldSearch &&
<Label kind={kinds.SUCCESS}>
Automatic Search
</Label>
}
</div>
<EditImportListModalConnector
@@ -102,6 +109,7 @@ ImportList.propTypes = {
id: PropTypes.number.isRequired,
name: PropTypes.string.isRequired,
enableAutomaticAdd: PropTypes.bool.isRequired,
shouldSearch: PropTypes.bool.isRequired,
onConfirmDeleteImportList: PropTypes.func.isRequired
};