From bce898678176acd991d88bd5b6e1f5ebd2083184 Mon Sep 17 00:00:00 2001 From: Arielk Date: Wed, 30 May 2018 14:52:00 +0300 Subject: removed fields from LA EP and LKG Change-Id: I20b9d81721125ac19c2910a36e11290c3fda27bd Issue-ID: SDC-1381 Signed-off-by: Arielk --- .../licenseKeyGroups/LicenseKeyGroupsConstants.js | 34 +--------------------- 1 file changed, 1 insertion(+), 33 deletions(-) (limited to 'openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseKeyGroups/LicenseKeyGroupsConstants.js') 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 aad0a0b1fb..d20188667d 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 actionTypes = keyMirror({ 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 extractValue = item => { : ''; }; -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', -- cgit 1.2.3-korg