New: Indexer Description in Add Indexer Modal

This commit is contained in:
bakerboy448
2022-02-02 13:53:44 -06:00
committed by Qstick
parent 788a5a3e24
commit cb8c0d4aa7
3 changed files with 15 additions and 2 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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",