mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
New: Indexer Description in Add Indexer Modal
This commit is contained in:
@@ -37,6 +37,12 @@ const columns = [
|
|||||||
isSortable: true,
|
isSortable: true,
|
||||||
isVisible: true
|
isVisible: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'description',
|
||||||
|
label: translate('Description'),
|
||||||
|
isSortable: false,
|
||||||
|
isVisible: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'privacy',
|
name: 'privacy',
|
||||||
label: translate('Privacy'),
|
label: translate('Privacy'),
|
||||||
@@ -136,12 +142,12 @@ class AddIndexerModalContent extends Component {
|
|||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
const errorMessage = getErrorMessage(error, 'Unable to load indexers');
|
const errorMessage = getErrorMessage(error, translate('UnableToLoadIndexers'));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ModalContent onModalClose={onModalClose}>
|
<ModalContent onModalClose={onModalClose}>
|
||||||
<ModalHeader>
|
<ModalHeader>
|
||||||
Add Indexer
|
{translate('AddIndexer')}
|
||||||
</ModalHeader>
|
</ModalHeader>
|
||||||
|
|
||||||
<ModalBody
|
<ModalBody
|
||||||
|
@@ -32,6 +32,7 @@ class SelectIndexerRow extends Component {
|
|||||||
privacy,
|
privacy,
|
||||||
name,
|
name,
|
||||||
language,
|
language,
|
||||||
|
description,
|
||||||
isExistingIndexer
|
isExistingIndexer
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
@@ -61,6 +62,10 @@ class SelectIndexerRow extends Component {
|
|||||||
{language}
|
{language}
|
||||||
</TableRowCell>
|
</TableRowCell>
|
||||||
|
|
||||||
|
<TableRowCell>
|
||||||
|
{description}
|
||||||
|
</TableRowCell>
|
||||||
|
|
||||||
<TableRowCell>
|
<TableRowCell>
|
||||||
{translate(firstCharToUpper(privacy))}
|
{translate(firstCharToUpper(privacy))}
|
||||||
</TableRowCell>
|
</TableRowCell>
|
||||||
@@ -74,6 +79,7 @@ SelectIndexerRow.propTypes = {
|
|||||||
protocol: PropTypes.string.isRequired,
|
protocol: PropTypes.string.isRequired,
|
||||||
privacy: PropTypes.string.isRequired,
|
privacy: PropTypes.string.isRequired,
|
||||||
language: PropTypes.string.isRequired,
|
language: PropTypes.string.isRequired,
|
||||||
|
description: PropTypes.string.isRequired,
|
||||||
implementation: PropTypes.string.isRequired,
|
implementation: PropTypes.string.isRequired,
|
||||||
onIndexerSelect: PropTypes.func.isRequired,
|
onIndexerSelect: PropTypes.func.isRequired,
|
||||||
isExistingIndexer: PropTypes.bool.isRequired
|
isExistingIndexer: PropTypes.bool.isRequired
|
||||||
|
@@ -416,6 +416,7 @@
|
|||||||
"UnableToLoadGeneralSettings": "Unable to load General settings",
|
"UnableToLoadGeneralSettings": "Unable to load General settings",
|
||||||
"UnableToLoadHistory": "Unable to load history",
|
"UnableToLoadHistory": "Unable to load history",
|
||||||
"UnableToLoadIndexerProxies": "Unable To Load Indexer Proxies",
|
"UnableToLoadIndexerProxies": "Unable To Load Indexer Proxies",
|
||||||
|
"UnableToLoadIndexers": "Unable to load Indexers",
|
||||||
"UnableToLoadNotifications": "Unable to load Notifications",
|
"UnableToLoadNotifications": "Unable to load Notifications",
|
||||||
"UnableToLoadTags": "Unable to load Tags",
|
"UnableToLoadTags": "Unable to load Tags",
|
||||||
"UnableToLoadUISettings": "Unable to load UI settings",
|
"UnableToLoadUISettings": "Unable to load UI settings",
|
||||||
|
Reference in New Issue
Block a user