removed fields from LA EP and LKG
Change-Id: I20b9d81721125ac19c2910a36e11290c3fda27bd
Issue-ID: SDC-1381
Signed-off-by: Arielk <Ariel.Kenan@amdocs.com>
diff --git a/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseKeyGroups/LicenseKeyGroupsConstants.js b/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseKeyGroups/LicenseKeyGroupsConstants.js
index aad0a0b..d201886 100644
--- a/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseKeyGroups/LicenseKeyGroupsConstants.js
+++ b/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseKeyGroups/LicenseKeyGroupsConstants.js
@@ -35,24 +35,13 @@
export const defaultState = {
licenseKeyGroupsEditor: {
- type: '',
- operationalScope: { choices: [], other: '' }
+ type: ''
}
};
export const LKG_FORM_NAME = 'LKGFORM';
export const optionsInputValues = {
- OPERATIONAL_SCOPE: [
- { enum: '', title: i18n('please select…') },
- { enum: 'Network_Wide', title: 'Network Wide' },
- { enum: 'Availability_Zone', title: 'Availability Zone' },
- { enum: 'Data_Center', title: 'Data Center' },
- { enum: 'Tenant', title: 'Tenant' },
- { enum: 'VM', title: 'VM' },
- { enum: 'CPU', title: 'CPU' },
- { enum: 'Core', title: 'Core' }
- ],
TYPE: [
{ enum: '', title: i18n('please select…') },
{ enum: 'Universal', title: 'Universal' },
@@ -73,27 +62,6 @@
: '';
};
-export const getOperationalScopes = operationalScope => {
- if (
- operationalScope.choices.toString() === i18n(optionInputOther.OTHER) &&
- operationalScope.other !== ''
- ) {
- return operationalScope.other;
- } else {
- let allOpScopes = '';
- for (let opScope of operationalScope.choices) {
- allOpScopes +=
- allOpScopes === ''
- ? InputOptions.getTitleByName(optionsInputValues, opScope)
- : `, ${InputOptions.getTitleByName(
- optionsInputValues,
- opScope
- )}`;
- }
- return allOpScopes;
- }
-};
-
export const tabIds = {
GENERAL: 'GENERAL',
SP_LIMITS: 'SP_LIMITS',