Skip to content

Commit

Permalink
chore(modals/deploy-doagram): always validate on blur
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku authored and merge-me[bot] committed Dec 10, 2018
1 parent 3618da4 commit 282efd5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/src/app/modals/deploy-diagram/View.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ const View = (props) => {
validate={ validateEndpointUrl }
className={ classnames({
valid: !errors.endpointUrl && touched.endpointUrl,
invalid: errors.endpointUrl && touched.endpointUrl && submitCount
invalid: errors.endpointUrl && touched.endpointUrl
}) }
/>

{ errors.endpointUrl && touched.endpointUrl && submitCount ? (
{ errors.endpointUrl && touched.endpointUrl ? (
<div className="hint error">{errors.endpointUrl}</div>
) : null}

Expand All @@ -87,11 +87,11 @@ const View = (props) => {
validate={ validateDeploymentName }
className={ classnames({
valid: !errors.deploymentName && touched.deploymentName,
invalid: errors.deploymentName && touched.deploymentName && submitCount
invalid: errors.deploymentName && touched.deploymentName
}) }
/>

{ errors.deploymentName && touched.deploymentName && submitCount ? (
{ errors.deploymentName && touched.deploymentName ? (
<div className="hint error">{errors.deploymentName}</div>
) : null}
</div>
Expand Down

0 comments on commit 282efd5

Please sign in to comment.