1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-24 22:36:19 -04:00

Fixed: Validation failures not being shown if adding a series fails

This commit is contained in:
Mark McDowall
2019-01-01 16:13:49 -08:00
parent 36fe4eaa49
commit fc376bfe3f
13 changed files with 64 additions and 62 deletions
@@ -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) {
<FormLabel>Branch</FormLabel>
<FormInputGroup
type={inputTypes.TEXT}
type={inputTypes.AUTO_COMPLETE}
name="branch"
helpText={usingExternalUpdateMechanism ? 'Branch used by external update mechanism' : 'Branch to use to update Sonarr'}
helpLink="https://github.com/Sonarr/Sonarr/wiki/Release-Branches"
{...branch}
values={branchValues}
onChange={onInputChange}
readOnly={usingExternalUpdateMechanism}
{...branch}
/>
</FormGroup>