mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-07 01:04:54 +00:00
Indexer Priority ESLint fixes
This commit is contained in:
@@ -132,9 +132,10 @@ function EditIndexerModalContent(props) {
|
||||
);
|
||||
})
|
||||
}
|
||||
<FormGroup
|
||||
advancedSettings={advancedSettings}
|
||||
isAdvanced={true}>
|
||||
<FormGroup
|
||||
advancedSettings={advancedSettings}
|
||||
isAdvanced={true}
|
||||
>
|
||||
<FormLabel>Indexer Priority</FormLabel>
|
||||
|
||||
<FormInputGroup
|
||||
|
||||
@@ -95,7 +95,7 @@ class Indexer extends Component {
|
||||
Interactive Search
|
||||
</Label>
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
showPriority &&
|
||||
<Label kind={kinds.DEFAULT}>
|
||||
@@ -137,11 +137,13 @@ class Indexer extends Component {
|
||||
Indexer.propTypes = {
|
||||
id: PropTypes.number.isRequired,
|
||||
name: PropTypes.string.isRequired,
|
||||
priority: PropTypes.number.isRequired,
|
||||
enableRss: PropTypes.bool.isRequired,
|
||||
enableAutomaticSearch: PropTypes.bool.isRequired,
|
||||
enableInteractiveSearch: PropTypes.bool.isRequired,
|
||||
supportsRss: PropTypes.bool.isRequired,
|
||||
supportsSearch: PropTypes.bool.isRequired,
|
||||
showPriority: PropTypes.bool.isRequired,
|
||||
onConfirmDeleteIndexer: PropTypes.func.isRequired
|
||||
};
|
||||
|
||||
|
||||
@@ -56,8 +56,8 @@ class Indexers extends Component {
|
||||
isAddIndexerModalOpen,
|
||||
isEditIndexerModalOpen
|
||||
} = this.state;
|
||||
|
||||
const showPriority = items.some((index) => index.priority != 25);
|
||||
|
||||
const showPriority = items.some((index) => index.priority !== 25);
|
||||
|
||||
return (
|
||||
<FieldSet legend="Indexers">
|
||||
|
||||
Reference in New Issue
Block a user