ui v2
This commit is contained in:
parent
0545b1d097
commit
31cff12e43
|
@ -16,22 +16,6 @@ import styles from './EditReleaseProfileModalContent.css';
|
|||
// Tab, enter, and comma
|
||||
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) {
|
||||
const {
|
||||
isSaving,
|
||||
|
@ -46,11 +30,11 @@ function EditReleaseProfileModalContent(props) {
|
|||
|
||||
const {
|
||||
id,
|
||||
enableProfile,
|
||||
required,
|
||||
ignored,
|
||||
preferred,
|
||||
indexer,
|
||||
enableIndexer,
|
||||
indexerId,
|
||||
includePreferredWhenRenaming,
|
||||
tags
|
||||
} = item;
|
||||
|
@ -63,6 +47,18 @@ function EditReleaseProfileModalContent(props) {
|
|||
|
||||
<ModalBody>
|
||||
<Form {...otherProps}>
|
||||
<FormGroup>
|
||||
<FormLabel>Enable Profile</FormLabel>
|
||||
|
||||
<FormInputGroup
|
||||
type={inputTypes.CHECK}
|
||||
name="enableProfile"
|
||||
helpText="Check to enable release profile"
|
||||
{...enableProfile}
|
||||
onChange={onInputChange}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
<FormGroup>
|
||||
<FormLabel>Must Contain</FormLabel>
|
||||
|
||||
|
@ -127,24 +123,10 @@ function EditReleaseProfileModalContent(props) {
|
|||
<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}
|
||||
type={inputTypes.NUMBER}
|
||||
name="indexerId"
|
||||
helpText="Specify what indexer the profile applies to"
|
||||
{...indexerId}
|
||||
onChange={onInputChange}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
|
Loading…
Reference in New Issue