New: Option to disable automatic search on import lists

(cherry picked from commit 9fc0a8d4d1109ee5a99e3776b4dcec6b3d458fbc)
This commit is contained in:
ta264 2022-07-18 22:51:52 +01:00
commit 92e0a6e6c6
6 changed files with 43 additions and 4 deletions

View file

@ -75,6 +75,7 @@ function EditImportListModalContent(props) {
name,
enableAutomaticAdd,
shouldMonitor,
shouldSearch,
rootFolderPath,
monitorNewItems,
qualityProfileId,
@ -170,6 +171,18 @@ function EditImportListModalContent(props) {
onChange={onInputChange}
/>
</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>
</FieldSet>
<FieldSet legend={translate('AddedArtistSettings')} >

View file

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