mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
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
This commit is contained in:
@@ -20,19 +20,25 @@ import styles from './AddIndexerModalContent.css';
|
|||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
name: 'protocol',
|
name: 'protocol',
|
||||||
label: 'Protocol',
|
label: translate('Protocol'),
|
||||||
isSortable: true,
|
isSortable: true,
|
||||||
isVisible: true
|
isVisible: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
label: 'Name',
|
label: translate('Name'),
|
||||||
|
isSortable: true,
|
||||||
|
isVisible: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'language',
|
||||||
|
label: translate('Language'),
|
||||||
isSortable: true,
|
isSortable: true,
|
||||||
isVisible: true
|
isVisible: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'privacy',
|
name: 'privacy',
|
||||||
label: 'Privacy',
|
label: translate('Privacy'),
|
||||||
isSortable: true,
|
isSortable: true,
|
||||||
isVisible: true
|
isVisible: true
|
||||||
}
|
}
|
||||||
|
@@ -26,7 +26,8 @@ class SelectIndexerRow extends Component {
|
|||||||
const {
|
const {
|
||||||
protocol,
|
protocol,
|
||||||
privacy,
|
privacy,
|
||||||
name
|
name,
|
||||||
|
language
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -41,6 +42,10 @@ class SelectIndexerRow extends Component {
|
|||||||
{name}
|
{name}
|
||||||
</TableRowCell>
|
</TableRowCell>
|
||||||
|
|
||||||
|
<TableRowCell>
|
||||||
|
{language}
|
||||||
|
</TableRowCell>
|
||||||
|
|
||||||
<TableRowCell>
|
<TableRowCell>
|
||||||
{privacy}
|
{privacy}
|
||||||
</TableRowCell>
|
</TableRowCell>
|
||||||
@@ -53,6 +58,7 @@ SelectIndexerRow.propTypes = {
|
|||||||
name: PropTypes.string.isRequired,
|
name: PropTypes.string.isRequired,
|
||||||
protocol: PropTypes.string.isRequired,
|
protocol: PropTypes.string.isRequired,
|
||||||
privacy: PropTypes.string.isRequired,
|
privacy: PropTypes.string.isRequired,
|
||||||
|
language: PropTypes.string.isRequired,
|
||||||
implementation: PropTypes.string.isRequired,
|
implementation: PropTypes.string.isRequired,
|
||||||
onIndexerSelect: PropTypes.func.isRequired
|
onIndexerSelect: PropTypes.func.isRequired
|
||||||
};
|
};
|
||||||
|
@@ -107,6 +107,7 @@ namespace NzbDrone.Core.Indexers.Cardigann
|
|||||||
{
|
{
|
||||||
Enable = true,
|
Enable = true,
|
||||||
Name = definition.Name,
|
Name = definition.Name,
|
||||||
|
Language = definition.Language,
|
||||||
Implementation = GetType().Name,
|
Implementation = GetType().Name,
|
||||||
Settings = new CardigannSettings { DefinitionFile = definition.File },
|
Settings = new CardigannSettings { DefinitionFile = definition.File },
|
||||||
Protocol = DownloadProtocol.Torrent,
|
Protocol = DownloadProtocol.Torrent,
|
||||||
|
Reference in New Issue
Block a user