summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseKeyGroups/LicenseKeyGroupsEditorReducer.js
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseKeyGroups/LicenseKeyGroupsEditorReducer.js')
-rw-r--r--openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseKeyGroups/LicenseKeyGroupsEditorReducer.js18
1 files changed, 14 insertions, 4 deletions
diff --git a/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseKeyGroups/LicenseKeyGroupsEditorReducer.js b/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseKeyGroups/LicenseKeyGroupsEditorReducer.js
index 68953169c1..d3af8bea5c 100644
--- a/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseKeyGroups/LicenseKeyGroupsEditorReducer.js
+++ b/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseKeyGroups/LicenseKeyGroupsEditorReducer.js
@@ -49,14 +49,18 @@ export default (state = {}, action) => {
description: {
isValid: true,
errorText: '',
- validations: [{ type: 'maxLength', data: 1000 }]
+ validations: [
+ { type: 'maxLength', data: 1000 },
+ { type: 'validateName', data: true }
+ ]
},
name: {
isValid: true,
errorText: '',
validations: [
{ type: 'required', data: true },
- { type: 'maxLength', data: 120 }
+ { type: 'maxLength', data: 120 },
+ { type: 'validateName', data: true }
]
},
type: {
@@ -77,7 +81,10 @@ export default (state = {}, action) => {
increments: {
isValid: true,
errorText: '',
- validations: [{ type: 'maxLength', data: 120 }]
+ validations: [
+ { type: 'maxLength', data: 120 },
+ { type: 'validateName', data: true }
+ ]
},
startDate: {
isValid: true,
@@ -92,7 +99,10 @@ export default (state = {}, action) => {
manufacturerReferenceNumber: {
isValid: true,
errorText: '',
- validations: [{ type: 'maxLength', data: 100 }]
+ validations: [
+ { type: 'maxLength', data: 100 },
+ { type: 'validateName', data: true }
+ ]
}
}
};