mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-25 22:59:10 -04:00
Add download clients notice about sync to applications
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
import Alert from 'Components/Alert';
|
||||||
import Card from 'Components/Card';
|
import Card from 'Components/Card';
|
||||||
import FieldSet from 'Components/FieldSet';
|
import FieldSet from 'Components/FieldSet';
|
||||||
import Icon from 'Components/Icon';
|
import Icon from 'Components/Icon';
|
||||||
import PageSectionContent from 'Components/Page/PageSectionContent';
|
import PageSectionContent from 'Components/Page/PageSectionContent';
|
||||||
import { icons } from 'Helpers/Props';
|
import { icons, kinds } from 'Helpers/Props';
|
||||||
import translate from 'Utilities/String/translate';
|
import translate from 'Utilities/String/translate';
|
||||||
import AddDownloadClientModal from './AddDownloadClientModal';
|
import AddDownloadClientModal from './AddDownloadClientModal';
|
||||||
import DownloadClient from './DownloadClient';
|
import DownloadClient from './DownloadClient';
|
||||||
@@ -59,48 +60,59 @@ class DownloadClients extends Component {
|
|||||||
} = this.state;
|
} = this.state;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<FieldSet legend={translate('DownloadClients')}>
|
<div>
|
||||||
<PageSectionContent
|
<Alert kind={kinds.INFO}>
|
||||||
errorMessage={translate('DownloadClientsLoadError')}
|
<div>
|
||||||
{...otherProps}
|
{translate('ProwlarrDownloadClientsAlert')}
|
||||||
>
|
|
||||||
<div className={styles.downloadClients}>
|
|
||||||
{
|
|
||||||
items.map((item) => {
|
|
||||||
return (
|
|
||||||
<DownloadClient
|
|
||||||
key={item.id}
|
|
||||||
{...item}
|
|
||||||
onConfirmDeleteDownloadClient={onConfirmDeleteDownloadClient}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
<Card
|
|
||||||
className={styles.addDownloadClient}
|
|
||||||
onPress={this.onAddDownloadClientPress}
|
|
||||||
>
|
|
||||||
<div className={styles.center}>
|
|
||||||
<Icon
|
|
||||||
name={icons.ADD}
|
|
||||||
size={45}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</Card>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
{translate('ProwlarrDownloadClientsInAppOnlyAlert')}
|
||||||
|
</div>
|
||||||
|
</Alert>
|
||||||
|
|
||||||
<AddDownloadClientModal
|
<FieldSet legend={translate('DownloadClients')}>
|
||||||
isOpen={isAddDownloadClientModalOpen}
|
<PageSectionContent
|
||||||
onModalClose={this.onAddDownloadClientModalClose}
|
errorMessage={translate('DownloadClientsLoadError')}
|
||||||
/>
|
{...otherProps}
|
||||||
|
>
|
||||||
|
<div className={styles.downloadClients}>
|
||||||
|
{
|
||||||
|
items.map((item) => {
|
||||||
|
return (
|
||||||
|
<DownloadClient
|
||||||
|
key={item.id}
|
||||||
|
{...item}
|
||||||
|
onConfirmDeleteDownloadClient={onConfirmDeleteDownloadClient}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
<EditDownloadClientModalConnector
|
<Card
|
||||||
isOpen={isEditDownloadClientModalOpen}
|
className={styles.addDownloadClient}
|
||||||
onModalClose={this.onEditDownloadClientModalClose}
|
onPress={this.onAddDownloadClientPress}
|
||||||
/>
|
>
|
||||||
</PageSectionContent>
|
<div className={styles.center}>
|
||||||
</FieldSet>
|
<Icon
|
||||||
|
name={icons.ADD}
|
||||||
|
size={45}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</Card>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<AddDownloadClientModal
|
||||||
|
isOpen={isAddDownloadClientModalOpen}
|
||||||
|
onModalClose={this.onAddDownloadClientModalClose}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<EditDownloadClientModalConnector
|
||||||
|
isOpen={isEditDownloadClientModalOpen}
|
||||||
|
onModalClose={this.onEditDownloadClientModalClose}
|
||||||
|
/>
|
||||||
|
</PageSectionContent>
|
||||||
|
</FieldSet>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -521,6 +521,8 @@
|
|||||||
"Privacy": "Privacy",
|
"Privacy": "Privacy",
|
||||||
"Private": "Private",
|
"Private": "Private",
|
||||||
"Protocol": "Protocol",
|
"Protocol": "Protocol",
|
||||||
|
"ProwlarrDownloadClientsAlert": "If you intend to do searches directly within {appName}, you need to add Download Clients. Otherwise, you do not need to add them here. For searches from your Apps, the download clients configured there are used instead.",
|
||||||
|
"ProwlarrDownloadClientsInAppOnlyAlert": "Download clients are for {appName} in-app searches only and do not sync to apps. There are no plans to add any such functionality.",
|
||||||
"ProwlarrSupportsAnyDownloadClient": "{appName} supports any of the download clients listed below.",
|
"ProwlarrSupportsAnyDownloadClient": "{appName} supports any of the download clients listed below.",
|
||||||
"ProwlarrSupportsAnyIndexer": "{appName} supports many indexers in addition to any indexer that uses the Newznab/Torznab standard using 'Generic Newznab' (for usenet) or 'Generic Torznab' (for torrents). Search & Select your indexer from below.",
|
"ProwlarrSupportsAnyIndexer": "{appName} supports many indexers in addition to any indexer that uses the Newznab/Torznab standard using 'Generic Newznab' (for usenet) or 'Generic Torznab' (for torrents). Search & Select your indexer from below.",
|
||||||
"Proxies": "Proxies",
|
"Proxies": "Proxies",
|
||||||
|
|||||||
Reference in New Issue
Block a user