mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-13 18:27:08 -07:00
UI Updates, Separate Auto and Manual Searches per Indexer
This commit is contained in:
parent
e181876dfc
commit
27d65937c0
28 changed files with 202 additions and 117 deletions
|
@ -37,7 +37,8 @@ function EditIndexerModalContent(props) {
|
|||
id,
|
||||
name,
|
||||
enableRss,
|
||||
enableSearch,
|
||||
enableAutomaticSearch,
|
||||
enableInteractiveSearch,
|
||||
supportsRss,
|
||||
supportsSearch,
|
||||
fields
|
||||
|
@ -90,14 +91,29 @@ function EditIndexerModalContent(props) {
|
|||
</FormGroup>
|
||||
|
||||
<FormGroup>
|
||||
<FormLabel>Enable Search</FormLabel>
|
||||
<FormLabel>Enable Automatic Search</FormLabel>
|
||||
|
||||
<FormInputGroup
|
||||
type={inputTypes.CHECK}
|
||||
name="enableSearch"
|
||||
name="enableAutomaticSearch"
|
||||
helpText={supportsSearch.value && 'Will be used when automatic searches are performed via the UI or by Lidarr'}
|
||||
helpTextWarning={supportsSearch.value ? undefined : 'Search is not supported with this indexer'}
|
||||
isDisabled={!supportsSearch.value}
|
||||
{...enableSearch}
|
||||
{...enableAutomaticSearch}
|
||||
onChange={onInputChange}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
<FormGroup>
|
||||
<FormLabel>Enable Interactive Search</FormLabel>
|
||||
|
||||
<FormInputGroup
|
||||
type={inputTypes.CHECK}
|
||||
name="enableInteractiveSearch"
|
||||
helpText={supportsSearch.value && 'Will be used when interactive search is used'}
|
||||
helpTextWarning={supportsSearch.value ? undefined : 'Search is not supported with this indexer'}
|
||||
isDisabled={!supportsSearch.value}
|
||||
{...enableInteractiveSearch}
|
||||
onChange={onInputChange}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
|
|
@ -67,7 +67,8 @@ class Indexer extends Component {
|
|||
id,
|
||||
name,
|
||||
enableRss,
|
||||
enableSearch,
|
||||
enableAutomaticSearch,
|
||||
enableInteractiveSearch,
|
||||
supportsRss,
|
||||
supportsSearch
|
||||
} = this.props;
|
||||
|
@ -90,10 +91,17 @@ class Indexer extends Component {
|
|||
</Label>
|
||||
|
||||
<Label
|
||||
kind={getLabelKind(supportsSearch, enableSearch)}
|
||||
outline={supportsSearch && !enableSearch}
|
||||
kind={getLabelKind(supportsSearch, enableAutomaticSearch)}
|
||||
outline={supportsSearch && !enableAutomaticSearch}
|
||||
>
|
||||
Search
|
||||
Automatic Search
|
||||
</Label>
|
||||
|
||||
<Label
|
||||
kind={getLabelKind(supportsSearch, enableInteractiveSearch)}
|
||||
outline={supportsSearch && !enableInteractiveSearch}
|
||||
>
|
||||
Interactive Search
|
||||
</Label>
|
||||
</div>
|
||||
|
||||
|
@ -122,7 +130,8 @@ Indexer.propTypes = {
|
|||
id: PropTypes.number.isRequired,
|
||||
name: PropTypes.string.isRequired,
|
||||
enableRss: PropTypes.bool.isRequired,
|
||||
enableSearch: PropTypes.bool.isRequired,
|
||||
enableAutomaticSearch: PropTypes.bool.isRequired,
|
||||
enableInteractiveSearch: PropTypes.bool.isRequired,
|
||||
supportsRss: PropTypes.bool.isRequired,
|
||||
supportsSearch: PropTypes.bool.isRequired,
|
||||
onConfirmDeleteIndexer: PropTypes.func.isRequired
|
||||
|
|
|
@ -107,12 +107,12 @@ function EditNotificationModalContent(props) {
|
|||
</FormGroup>
|
||||
|
||||
<FormGroup>
|
||||
<FormLabel>On Download</FormLabel>
|
||||
<FormLabel>On Import</FormLabel>
|
||||
|
||||
<FormInputGroup
|
||||
type={inputTypes.CHECK}
|
||||
name="onDownload"
|
||||
helpText="Be notified when episodes are successfully downloaded"
|
||||
helpText="Be notified when tracks are successfully imported"
|
||||
isDisabled={!supportsOnDownload.value}
|
||||
{...onDownload}
|
||||
onChange={onInputChange}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue