diff --git a/frontend/src/Settings/Profiles/Delay/DelayProfile.js b/frontend/src/Settings/Profiles/Delay/DelayProfile.js index c9b5b8358..6d3af11e9 100644 --- a/frontend/src/Settings/Profiles/Delay/DelayProfile.js +++ b/frontend/src/Settings/Profiles/Delay/DelayProfile.js @@ -84,7 +84,7 @@ class DelayProfile extends Component { connectDragSource } = this.props; - let preferred = titleCase(preferredProtocol); + let preferred = `Prefer ${titleCase(preferredProtocol)}`; if (!enableUsenet) { preferred = 'Only Torrent'; diff --git a/frontend/src/Settings/Profiles/Delay/DelayProfiles.js b/frontend/src/Settings/Profiles/Delay/DelayProfiles.js index 6c81357a5..c1d844ae8 100644 --- a/frontend/src/Settings/Profiles/Delay/DelayProfiles.js +++ b/frontend/src/Settings/Profiles/Delay/DelayProfiles.js @@ -81,7 +81,7 @@ class DelayProfiles extends Component { >
-
Protocol
+
Preferred Protocol
Usenet Delay
Torrent Delay
Tags
diff --git a/frontend/src/Settings/Profiles/Delay/EditDelayProfileModalContent.js b/frontend/src/Settings/Profiles/Delay/EditDelayProfileModalContent.js index 9715d4a63..d16bf4d31 100644 --- a/frontend/src/Settings/Profiles/Delay/EditDelayProfileModalContent.js +++ b/frontend/src/Settings/Profiles/Delay/EditDelayProfileModalContent.js @@ -16,6 +16,13 @@ import FormLabel from 'Components/Form/FormLabel'; import FormInputGroup from 'Components/Form/FormInputGroup'; import styles from './EditDelayProfileModalContent.css'; +const protocolOptions = [ + { key: 'preferUsenet', value: 'Prefer Usenet' }, + { key: 'preferTorrent', value: 'Prefer Torrent' }, + { key: 'onlyUsenet', value: 'Only Usenet' }, + { key: 'onlyTorrent', value: 'Only Torrent' } +]; + function EditDelayProfileModalContent(props) { const { id, @@ -25,7 +32,6 @@ function EditDelayProfileModalContent(props) { saveError, item, protocol, - protocolOptions, onInputChange, onProtocolChange, onSavePress, @@ -51,20 +57,22 @@ function EditDelayProfileModalContent(props) { { - isFetching && - + isFetching ? + : + null } { - !isFetching && !!error && -
Unable to add a new quality profile, please try again.
+ !isFetching && !!error ? +
Unable to add a new quality profile, please try again.
: + null } { - !isFetching && !error && + !isFetching && !error ?
- Protocol + Preferred Protocol } -
+ : + null }
{ - id && id > 1 && + id && id > 1 ? + : + null }