mirror of https://github.com/Sonarr/Sonarr
Indexer Priority ESLint fixes
This commit is contained in:
parent
cd97eb3fa6
commit
ae1881a68c
|
@ -132,9 +132,10 @@ function EditIndexerModalContent(props) {
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
<FormGroup
|
<FormGroup
|
||||||
advancedSettings={advancedSettings}
|
advancedSettings={advancedSettings}
|
||||||
isAdvanced={true}>
|
isAdvanced={true}
|
||||||
|
>
|
||||||
<FormLabel>Indexer Priority</FormLabel>
|
<FormLabel>Indexer Priority</FormLabel>
|
||||||
|
|
||||||
<FormInputGroup
|
<FormInputGroup
|
||||||
|
|
|
@ -114,7 +114,7 @@ class Indexer extends Component {
|
||||||
Interactive Search
|
Interactive Search
|
||||||
</Label>
|
</Label>
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
showPriority &&
|
showPriority &&
|
||||||
<Label kind={kinds.DEFAULT}>
|
<Label kind={kinds.DEFAULT}>
|
||||||
|
@ -156,11 +156,13 @@ class Indexer extends Component {
|
||||||
Indexer.propTypes = {
|
Indexer.propTypes = {
|
||||||
id: PropTypes.number.isRequired,
|
id: PropTypes.number.isRequired,
|
||||||
name: PropTypes.string.isRequired,
|
name: PropTypes.string.isRequired,
|
||||||
|
priority: PropTypes.number.isRequired,
|
||||||
enableRss: PropTypes.bool.isRequired,
|
enableRss: PropTypes.bool.isRequired,
|
||||||
enableAutomaticSearch: PropTypes.bool.isRequired,
|
enableAutomaticSearch: PropTypes.bool.isRequired,
|
||||||
enableInteractiveSearch: PropTypes.bool.isRequired,
|
enableInteractiveSearch: PropTypes.bool.isRequired,
|
||||||
supportsRss: PropTypes.bool.isRequired,
|
supportsRss: PropTypes.bool.isRequired,
|
||||||
supportsSearch: PropTypes.bool.isRequired,
|
supportsSearch: PropTypes.bool.isRequired,
|
||||||
|
showPriority: PropTypes.bool.isRequired,
|
||||||
onCloneIndexerPress: PropTypes.func.isRequired,
|
onCloneIndexerPress: PropTypes.func.isRequired,
|
||||||
onConfirmDeleteIndexer: PropTypes.func.isRequired
|
onConfirmDeleteIndexer: PropTypes.func.isRequired
|
||||||
};
|
};
|
||||||
|
|
|
@ -62,8 +62,8 @@ class Indexers extends Component {
|
||||||
isAddIndexerModalOpen,
|
isAddIndexerModalOpen,
|
||||||
isEditIndexerModalOpen
|
isEditIndexerModalOpen
|
||||||
} = this.state;
|
} = this.state;
|
||||||
|
|
||||||
const showPriority = items.some((index) => index.priority != 25);
|
const showPriority = items.some((index) => index.priority !== 25);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<FieldSet legend="Indexers">
|
<FieldSet legend="Indexers">
|
||||||
|
|
Loading…
Reference in New Issue