diff options
Diffstat (limited to 'openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement')
3 files changed, 1 insertions, 30 deletions
diff --git a/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementActionHelper.js b/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementActionHelper.js index 5d425a8aa4..feceba5726 100644 --- a/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementActionHelper.js +++ b/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementActionHelper.js @@ -40,7 +40,6 @@ function postLicenseAgreement(licenseModelId, licenseAgreement, version) { name: licenseAgreement.name, description: licenseAgreement.description, licenseTerm: licenseAgreement.licenseTerm, - requirementsAndConstrains: licenseAgreement.requirementsAndConstrains, addedFeatureGroupsIds: licenseAgreement.featureGroupsIds }); } @@ -61,8 +60,6 @@ function putLicenseAgreement( name: licenseAgreement.name, description: licenseAgreement.description, licenseTerm: licenseAgreement.licenseTerm, - requirementsAndConstrains: - licenseAgreement.requirementsAndConstrains, addedFeatureGroupsIds: featureGroupsIds.filter( featureGroupId => prevFeatureGroupsIds.indexOf(featureGroupId) === -1 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 0d3fb2a3b6..03157cb108 100644 --- a/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementEditorReducer.js +++ b/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementEditorReducer.js @@ -37,14 +37,6 @@ export default (state = {}, action) => { LicenseAgreementEnums.SELECTED_LICENSE_AGREEMENT_TAB .GENERAL }, - requirementsAndConstrains: { - isValid: true, - errorText: '', - validations: [{ type: 'maxLength', data: 1000 }], - tabId: - LicenseAgreementEnums.SELECTED_LICENSE_AGREEMENT_TAB - .GENERAL - }, licenseTerm: { isValid: true, errorText: '', diff --git a/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementEditorView.jsx b/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementEditorView.jsx index cc16dd996d..b2ebc1e436 100644 --- a/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementEditorView.jsx +++ b/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementEditorView.jsx @@ -42,7 +42,6 @@ const LicenseAgreementPropType = PropTypes.shape({ id: PropTypes.string, name: PropTypes.string, description: PropTypes.string, - requirementsAndConstrains: PropTypes.string, licenseTerm: PropTypes.object, featureGroupsIds: PropTypes.arrayOf(PropTypes.string), version: PropTypes.object @@ -54,7 +53,7 @@ const GeneralTabContent = ({ onDataChanged, validateName }) => { - let { name, description, requirementsAndConstrains, licenseTerm } = data; + let { name, description, licenseTerm } = data; return ( <GridSection hasLastColSet> <GridItem colSpan={2}> @@ -73,23 +72,6 @@ const GeneralTabContent = ({ isRequired={true} type="text" /> - <Input - isValid={genericFieldInfo.requirementsAndConstrains.isValid} - errorText={ - genericFieldInfo.requirementsAndConstrains.errorText - } - onChange={requirementsAndConstrains => - onDataChanged( - { requirementsAndConstrains }, - LA_EDITOR_FORM - ) - } - label={i18n('Requirements and Constraints')} - value={requirementsAndConstrains} - data-test-id="create-la-requirements-constants" - name="license-agreement-requirements-and-constraints" - type="textarea" - /> <InputOptions onInputChange={() => {}} isMultiSelect={false} |