ui v1
This commit is contained in:
parent
d3662f2302
commit
0545b1d097
|
@ -16,6 +16,22 @@ import styles from './EditReleaseProfileModalContent.css';
|
||||||
// Tab, enter, and comma
|
// Tab, enter, and comma
|
||||||
const tagInputDelimiters = [9, 13, 188];
|
const tagInputDelimiters = [9, 13, 188];
|
||||||
|
|
||||||
|
const indexerOptions = [
|
||||||
|
{ key: 'all', value: 'All' },
|
||||||
|
{ key: 'fanzub', value: 'Fanzub' },
|
||||||
|
{ key: 'newznab', value: 'Newznab' },
|
||||||
|
{ key: 'omgwtfnzbs', value: 'omgwtfnzbs' },
|
||||||
|
{ key: 'bitmetv', value: 'BitMeTV' },
|
||||||
|
{ key: 'broadcasthenet', value: 'BroadcastheNet' },
|
||||||
|
{ key: 'hdbits', value: 'HDBits' },
|
||||||
|
{ key: 'iptorrents', value: 'IP Torrents' },
|
||||||
|
{ key: 'nyaa', value: 'Nyaa' },
|
||||||
|
{ key: 'rarbg', value: 'Rarbg' },
|
||||||
|
{ key: 'torrentrssfeed', value: 'Torrent RSS Feed' },
|
||||||
|
{ key: 'torrentleech', value: 'TorrentLeech' },
|
||||||
|
{ key: 'torznab', value: 'Torznab' }
|
||||||
|
];
|
||||||
|
|
||||||
function EditReleaseProfileModalContent(props) {
|
function EditReleaseProfileModalContent(props) {
|
||||||
const {
|
const {
|
||||||
isSaving,
|
isSaving,
|
||||||
|
@ -33,6 +49,8 @@ function EditReleaseProfileModalContent(props) {
|
||||||
required,
|
required,
|
||||||
ignored,
|
ignored,
|
||||||
preferred,
|
preferred,
|
||||||
|
indexer,
|
||||||
|
enableIndexer,
|
||||||
includePreferredWhenRenaming,
|
includePreferredWhenRenaming,
|
||||||
tags
|
tags
|
||||||
} = item;
|
} = item;
|
||||||
|
@ -105,6 +123,32 @@ function EditReleaseProfileModalContent(props) {
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
|
|
||||||
|
<FormGroup>
|
||||||
|
<FormLabel>Indexer</FormLabel>
|
||||||
|
|
||||||
|
<FormInputGroup
|
||||||
|
type={inputTypes.SELECT}
|
||||||
|
name="indexer"
|
||||||
|
helpText="Specify what indexer profile applies to"
|
||||||
|
values={indexerOptions}
|
||||||
|
{...indexer}
|
||||||
|
onChange={onInputChange}
|
||||||
|
/>
|
||||||
|
|
||||||
|
</FormGroup>
|
||||||
|
|
||||||
|
<FormGroup>
|
||||||
|
<FormLabel>Enable Indexer</FormLabel>
|
||||||
|
|
||||||
|
<FormInputGroup
|
||||||
|
type={inputTypes.CHECK}
|
||||||
|
name="enableIndexer"
|
||||||
|
helpText="Enable to apply profile to chosen indexer"
|
||||||
|
{...enableIndexer}
|
||||||
|
onChange={onInputChange}
|
||||||
|
/>
|
||||||
|
</FormGroup>
|
||||||
|
|
||||||
<FormGroup>
|
<FormGroup>
|
||||||
<FormLabel>Tags</FormLabel>
|
<FormLabel>Tags</FormLabel>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue