diff --git a/frontend/src/AddSeries/AddNewSeries/AddNewSeriesModalContent.js b/frontend/src/AddSeries/AddNewSeries/AddNewSeriesModalContent.js index 1585ee492..9592d1e3b 100644 --- a/frontend/src/AddSeries/AddNewSeries/AddNewSeriesModalContent.js +++ b/frontend/src/AddSeries/AddNewSeries/AddNewSeriesModalContent.js @@ -70,7 +70,8 @@ class AddNewSeriesModalContent extends Component { showLanguageProfile, isSmallScreen, onModalClose, - onInputChange + onInputChange, + ...otherProps } = this.props; return ( @@ -87,22 +88,27 @@ class AddNewSeriesModalContent extends Component {
{ - !isSmallScreen && + isSmallScreen ?
-
+
: + null }
-
- {overview} -
+ { + overview ? +
+ {overview} +
: + null + } -
+ Root Folder diff --git a/frontend/src/Components/Form/Form.css b/frontend/src/Components/Form/Form.css new file mode 100644 index 000000000..52e79aec4 --- /dev/null +++ b/frontend/src/Components/Form/Form.css @@ -0,0 +1,3 @@ +.validationFailures { + margin-bottom: 20px; +} diff --git a/frontend/src/Components/Form/Form.js b/frontend/src/Components/Form/Form.js index 9a605297a..c2c67eddf 100644 --- a/frontend/src/Components/Form/Form.js +++ b/frontend/src/Components/Form/Form.js @@ -2,37 +2,42 @@ import PropTypes from 'prop-types'; import React from 'react'; import { kinds } from 'Helpers/Props'; import Alert from 'Components/Alert'; +import styles from './Form.css'; function Form({ children, validationErrors, validationWarnings, ...otherProps }) { return (
-
- { - validationErrors.map((error, index) => { - return ( - - {error.errorMessage} - - ); - }) - } + { + validationErrors.length || validationWarnings.length ? +
+ { + validationErrors.map((error, index) => { + return ( + + {error.errorMessage} + + ); + }) + } - { - validationWarnings.map((warning, index) => { - return ( - - {warning.errorMessage} - - ); - }) - } -
+ { + validationWarnings.map((warning, index) => { + return ( + + {warning.errorMessage} + + ); + }) + } +
: + null + } {children}
diff --git a/frontend/src/Series/Edit/EditSeriesModalContent.js b/frontend/src/Series/Edit/EditSeriesModalContent.js index c237cc824..713a5ae4b 100644 --- a/frontend/src/Series/Edit/EditSeriesModalContent.js +++ b/frontend/src/Series/Edit/EditSeriesModalContent.js @@ -84,9 +84,7 @@ class EditSeriesModalContent extends Component { - + Monitored diff --git a/frontend/src/Settings/DownloadClients/DownloadClients/EditDownloadClientModalContent.js b/frontend/src/Settings/DownloadClients/DownloadClients/EditDownloadClientModalContent.js index 60eff3eb8..6071479d8 100644 --- a/frontend/src/Settings/DownloadClients/DownloadClients/EditDownloadClientModalContent.js +++ b/frontend/src/Settings/DownloadClients/DownloadClients/EditDownloadClientModalContent.js @@ -67,9 +67,7 @@ class EditDownloadClientModalContent extends Component { { !isFetching && !error && - + { !!message && + Host diff --git a/frontend/src/Settings/General/UpdateSettings.js b/frontend/src/Settings/General/UpdateSettings.js index f5cd5af59..377845ad2 100644 --- a/frontend/src/Settings/General/UpdateSettings.js +++ b/frontend/src/Settings/General/UpdateSettings.js @@ -7,6 +7,11 @@ import FormGroup from 'Components/Form/FormGroup'; import FormLabel from 'Components/Form/FormLabel'; import FormInputGroup from 'Components/Form/FormInputGroup'; +const branchValues = [ + 'master', + 'develop' +]; + function UpdateSettings(props) { const { advancedSettings, @@ -51,13 +56,14 @@ function UpdateSettings(props) { Branch diff --git a/frontend/src/Settings/Indexers/Indexers/EditIndexerModalContent.js b/frontend/src/Settings/Indexers/Indexers/EditIndexerModalContent.js index 6a250df61..61b527358 100644 --- a/frontend/src/Settings/Indexers/Indexers/EditIndexerModalContent.js +++ b/frontend/src/Settings/Indexers/Indexers/EditIndexerModalContent.js @@ -64,9 +64,7 @@ function EditIndexerModalContent(props) { { !isFetching && !error && - + Name diff --git a/frontend/src/Settings/Metadata/Metadata/EditMetadataModalContent.js b/frontend/src/Settings/Metadata/Metadata/EditMetadataModalContent.js index 1e7006068..96bbb4b83 100644 --- a/frontend/src/Settings/Metadata/Metadata/EditMetadataModalContent.js +++ b/frontend/src/Settings/Metadata/Metadata/EditMetadataModalContent.js @@ -38,9 +38,7 @@ function EditMetadataModalContent(props) { - + Enable diff --git a/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.js b/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.js index 9c1d199c5..5c08e6622 100644 --- a/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.js +++ b/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.js @@ -70,9 +70,7 @@ function EditNotificationModalContent(props) { { !isFetching && !error && - + { !!message && + Protocol diff --git a/frontend/src/Settings/Profiles/Language/EditLanguageProfileModalContent.js b/frontend/src/Settings/Profiles/Language/EditLanguageProfileModalContent.js index ec4247c74..71684f1d1 100644 --- a/frontend/src/Settings/Profiles/Language/EditLanguageProfileModalContent.js +++ b/frontend/src/Settings/Profiles/Language/EditLanguageProfileModalContent.js @@ -59,9 +59,7 @@ function EditLanguageProfileModalContent(props) { { !isFetching && !error && - + Name diff --git a/frontend/src/Settings/Profiles/Release/EditReleaseProfileModalContent.js b/frontend/src/Settings/Profiles/Release/EditReleaseProfileModalContent.js index 81a93dd5a..90bf5b6d0 100644 --- a/frontend/src/Settings/Profiles/Release/EditReleaseProfileModalContent.js +++ b/frontend/src/Settings/Profiles/Release/EditReleaseProfileModalContent.js @@ -41,9 +41,7 @@ function EditReleaseProfileModalContent(props) { - + Must Contain