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