diff options
author | Arielk <Ariel.Kenan@amdocs.com> | 2018-05-30 14:52:00 +0300 |
---|---|---|
committer | Arielk <Ariel.Kenan@amdocs.com> | 2018-05-30 14:52:21 +0300 |
commit | bce898678176acd991d88bd5b6e1f5ebd2083184 (patch) | |
tree | 5d69968c33a630425c5d860df69fa6224584de01 /openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement | |
parent | 3b2267ad7c5cbbebfe1137ce27afd05bf82bb6ff (diff) |
removed fields from LA EP and LKG
Change-Id: I20b9d81721125ac19c2910a36e11290c3fda27bd
Issue-ID: SDC-1381
Signed-off-by: Arielk <Ariel.Kenan@amdocs.com>
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} |