mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
New: Option to disable automatic search on import lists
(cherry picked from commit 9fc0a8d4d1109ee5a99e3776b4dcec6b3d458fbc)
This commit is contained in:
parent
33bb5960e5
commit
92e0a6e6c6
6 changed files with 43 additions and 4 deletions
|
@ -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')} >
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue