Skip to content

Commit

Permalink
fix(provider/cf): do not trigger validation on serviceName when hidden (
Browse files Browse the repository at this point in the history
#6197)

Signed-off-by: Jammy Louie <jlouie@pivotal.io>
  • Loading branch information
Jammy Louie authored and jkschneider committed Dec 13, 2018
1 parent 4b08123 commit b3f7e91
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ class CloudFoundryDeployServiceStageCtrl implements IController {
}
}

const serviceNameValidatorConfig: IManifestFieldValidatorConfig = {
type: 'requiredManifestField',
manifestType: 'direct',
fieldName: 'serviceName',
preventSave: true,
};

const serviceValidatorConfig: IManifestFieldValidatorConfig = {
type: 'requiredManifestField',
manifestType: 'direct',
Expand Down Expand Up @@ -62,7 +69,7 @@ module(CLOUD_FOUNDRY_DEPLOY_SERVICE_STAGE, [])
validators: [
{ type: 'requiredField', fieldName: 'credentials', fieldLabel: 'account' },
{ type: 'requiredField', fieldName: 'region' },
{ type: 'requiredField', fieldName: 'serviceName', preventSave: true },
serviceNameValidatorConfig,
serviceValidatorConfig,
servicePlanValidatorConfig,
jsonValidatorConfig,
Expand Down

0 comments on commit b3f7e91

Please sign in to comment.