From: KrupaNagabhushan Date: Fri, 13 Aug 2021 11:53:23 +0000 (+0100) Subject: Fix license key group and entitlement pools required fields X-Git-Tag: 1.9.1~41 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=6730acbdc8686bb37148f86966840676857f0db1;p=sdc.git Fix license key group and entitlement pools required fields Issue-ID: SDC-3664 Signed-off-by: KrupaNagabhushan Change-Id: Ic426cc57861673002f03e2fe4fee81c25474c4e0 --- diff --git a/openecomp-ui/src/sdc-app/onboarding/licenseModel/entitlementPools/EntitlementPoolsEditorReducer.js b/openecomp-ui/src/sdc-app/onboarding/licenseModel/entitlementPools/EntitlementPoolsEditorReducer.js index c66cbbc25b..93202f37b3 100644 --- a/openecomp-ui/src/sdc-app/onboarding/licenseModel/entitlementPools/EntitlementPoolsEditorReducer.js +++ b/openecomp-ui/src/sdc-app/onboarding/licenseModel/entitlementPools/EntitlementPoolsEditorReducer.js @@ -55,10 +55,7 @@ export default (state = {}, action) => { description: { isValid: true, errorText: '', - validations: [ - { type: 'maxLength', data: 1000 }, - { type: 'validateName', data: true } - ] + validations: [{ type: 'maxLength', data: 1000 }] }, type: { isValid: true, @@ -68,10 +65,7 @@ export default (state = {}, action) => { increments: { isValid: true, errorText: '', - validations: [ - { type: 'maxLength', data: 120 }, - { type: 'validateName', data: true } - ] + validations: [{ type: 'maxLength', data: 120 }] }, thresholdUnits: { isValid: true, diff --git a/openecomp-ui/src/sdc-app/onboarding/licenseModel/featureGroups/FeatureGroupsEditorReducer.js b/openecomp-ui/src/sdc-app/onboarding/licenseModel/featureGroups/FeatureGroupsEditorReducer.js index c2135ec988..d9d0c4cfe1 100644 --- a/openecomp-ui/src/sdc-app/onboarding/licenseModel/featureGroups/FeatureGroupsEditorReducer.js +++ b/openecomp-ui/src/sdc-app/onboarding/licenseModel/featureGroups/FeatureGroupsEditorReducer.js @@ -32,10 +32,7 @@ export default (state = {}, action) => { description: { isValid: true, errorText: '', - validations: [ - { type: 'maxLength', data: 1000 }, - { type: 'validateName', data: true } - ], + validations: [{ type: 'maxLength', data: 1000 }], tabId: FeatureGroupStateConstants .SELECTED_FEATURE_GROUP_TAB.GENERAL diff --git a/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementEditorReducer.js b/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementEditorReducer.js index bca06a8ccd..183514ea7e 100644 --- a/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementEditorReducer.js +++ b/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementEditorReducer.js @@ -32,10 +32,7 @@ export default (state = {}, action) => { description: { isValid: true, errorText: '', - validations: [ - { type: 'maxLength', data: 1000 }, - { type: 'validateName', data: true } - ], + validations: [{ type: 'maxLength', data: 1000 }], tabId: LicenseAgreementEnums.SELECTED_LICENSE_AGREEMENT_TAB .GENERAL 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 d3af8bea5c..a6e78076f2 100644 --- a/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseKeyGroups/LicenseKeyGroupsEditorReducer.js +++ b/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseKeyGroups/LicenseKeyGroupsEditorReducer.js @@ -49,10 +49,7 @@ export default (state = {}, action) => { description: { isValid: true, errorText: '', - validations: [ - { type: 'maxLength', data: 1000 }, - { type: 'validateName', data: true } - ] + validations: [{ type: 'maxLength', data: 1000 }] }, name: { isValid: true, @@ -81,10 +78,7 @@ export default (state = {}, action) => { increments: { isValid: true, errorText: '', - validations: [ - { type: 'maxLength', data: 120 }, - { type: 'validateName', data: true } - ] + validations: [{ type: 'maxLength', data: 120 }] }, startDate: { isValid: true, @@ -99,10 +93,7 @@ export default (state = {}, action) => { manufacturerReferenceNumber: { isValid: true, errorText: '', - validations: [ - { type: 'maxLength', data: 100 }, - { type: 'validateName', data: true } - ] + validations: [{ type: 'maxLength', data: 100 }] } } };