New: Sort 'Add Indexer' by Language (#130)

* New: Sort 'Add Indexer' by Language

* Adds language to propTypes

Updates propTypes to appease lint

* Call translate for labels
pull/168/head
Lagicrus 3 years ago committed by GitHub
parent b592a137cf
commit d965cb3c98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,19 +20,25 @@ import styles from './AddIndexerModalContent.css';
const columns = [
{
name: 'protocol',
label: 'Protocol',
label: translate('Protocol'),
isSortable: true,
isVisible: true
},
{
name: 'name',
label: 'Name',
label: translate('Name'),
isSortable: true,
isVisible: true
},
{
name: 'language',
label: translate('Language'),
isSortable: true,
isVisible: true
},
{
name: 'privacy',
label: 'Privacy',
label: translate('Privacy'),
isSortable: true,
isVisible: true
}

@ -26,7 +26,8 @@ class SelectIndexerRow extends Component {
const {
protocol,
privacy,
name
name,
language
} = this.props;
return (
@ -41,6 +42,10 @@ class SelectIndexerRow extends Component {
{name}
</TableRowCell>
<TableRowCell>
{language}
</TableRowCell>
<TableRowCell>
{privacy}
</TableRowCell>
@ -53,6 +58,7 @@ SelectIndexerRow.propTypes = {
name: PropTypes.string.isRequired,
protocol: PropTypes.string.isRequired,
privacy: PropTypes.string.isRequired,
language: PropTypes.string.isRequired,
implementation: PropTypes.string.isRequired,
onIndexerSelect: PropTypes.func.isRequired
};

@ -107,6 +107,7 @@ namespace NzbDrone.Core.Indexers.Cardigann
{
Enable = true,
Name = definition.Name,
Language = definition.Language,
Implementation = GetType().Name,
Settings = new CardigannSettings { DefinitionFile = definition.File },
Protocol = DownloadProtocol.Torrent,

Loading…
Cancel
Save