From 6730acbdc8686bb37148f86966840676857f0db1 Mon Sep 17 00:00:00 2001 From: KrupaNagabhushan Date: Fri, 13 Aug 2021 12:53:23 +0100 Subject: [PATCH] Fix license key group and entitlement pools required fields Issue-ID: SDC-3664 Signed-off-by: KrupaNagabhushan Change-Id: Ic426cc57861673002f03e2fe4fee81c25474c4e0 --- .../entitlementPools/EntitlementPoolsEditorReducer.js | 10 ++-------- .../featureGroups/FeatureGroupsEditorReducer.js | 5 +---- .../licenseAgreement/LicenseAgreementEditorReducer.js | 5 +---- .../licenseKeyGroups/LicenseKeyGroupsEditorReducer.js | 15 +++------------ 4 files changed, 7 insertions(+), 28 deletions(-) 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 }] } } }; -- 2.16.6