diff options
author | svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com> | 2018-05-01 17:56:49 +0300 |
---|---|---|
committer | Einav Keidar <einavw@amdocs.com> | 2018-05-08 13:13:50 +0000 |
commit | cee71efe88cd29069391f11ef591c7260fb90d7b (patch) | |
tree | bb146d119b4c850fc0cc2ea1db8ae8a771f20ad2 /openecomp-ui/src/sdc-app/onboarding/onboard | |
parent | 7a81ddecef54cc8d37c264bc22c01851595d81f2 (diff) |
filter bug fixing
Issue-ID: SDC-1283
Change-Id: Idbc2a9153da0c889e998a8cd201b997e504f371e
Signed-off-by: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
Diffstat (limited to 'openecomp-ui/src/sdc-app/onboarding/onboard')
-rw-r--r-- | openecomp-ui/src/sdc-app/onboarding/onboard/OnboardActionHelper.js | 8 | ||||
-rw-r--r-- | openecomp-ui/src/sdc-app/onboarding/onboard/workspace/WorkspaceViewWithFilter.jsx | 14 |
2 files changed, 14 insertions, 8 deletions
diff --git a/openecomp-ui/src/sdc-app/onboarding/onboard/OnboardActionHelper.js b/openecomp-ui/src/sdc-app/onboarding/onboard/OnboardActionHelper.js index 2826e324b3..8443fe950b 100644 --- a/openecomp-ui/src/sdc-app/onboarding/onboard/OnboardActionHelper.js +++ b/openecomp-ui/src/sdc-app/onboarding/onboard/OnboardActionHelper.js @@ -21,10 +21,7 @@ import VersionsPageActionHelper from 'sdc-app/onboarding/versionsPage/VersionsPa import { itemTypes } from 'sdc-app/onboarding/versionsPage/VersionsPageConstants.js'; import PermissionsActionHelper from 'sdc-app/onboarding/permissions/PermissionsActionHelper.js'; import { actionTypes as filterActionTypes } from './filter/FilterConstants.js'; -import { - versionStatus, - itemStatus -} from 'sdc-app/common/helpers/ItemsHelperConstants.js'; +import { versionStatus } from 'sdc-app/common/helpers/ItemsHelperConstants.js'; const OnboardActionHelper = { resetOnboardStore(dispatch) { @@ -43,8 +40,7 @@ const OnboardActionHelper = { deltaData: activeTab === tabsMapping.WORKSPACE ? { - versionStatus: versionStatus.DRAFT, - itemStatus: itemStatus.ACTIVE + versionStatus: versionStatus.DRAFT } : { versionStatus: versionStatus.CERTIFIED diff --git a/openecomp-ui/src/sdc-app/onboarding/onboard/workspace/WorkspaceViewWithFilter.jsx b/openecomp-ui/src/sdc-app/onboarding/onboard/workspace/WorkspaceViewWithFilter.jsx index eec59622b3..afc68e1a64 100644 --- a/openecomp-ui/src/sdc-app/onboarding/onboard/workspace/WorkspaceViewWithFilter.jsx +++ b/openecomp-ui/src/sdc-app/onboarding/onboard/workspace/WorkspaceViewWithFilter.jsx @@ -17,6 +17,7 @@ import React from 'react'; import DetailsCatalogView from '../DetailsCatalogView.jsx'; import i18n from 'nfvo-utils/i18n/i18n.js'; import { tabsMapping } from 'sdc-app/onboarding/onboard/OnboardConstants.js'; +import { tabsMapping as catalogTabsMappping } from '../onboardingCatalog/OnboardingCatalogConstants.js'; const WorkspaceView = props => { let { @@ -27,6 +28,7 @@ const WorkspaceView = props => { onSelectSoftwareProduct, searchValue, onMigrate, + catalogActiveTab, filteredItems: { vspList, vlmList } } = props; @@ -39,8 +41,16 @@ const WorkspaceView = props => { VLMList={vlmList} VSPList={vspList} users={users} - onAddVLM={onAddLicenseModelClick} - onAddVSP={onAddSoftwareProductClick} + onAddVLM={ + catalogActiveTab === catalogTabsMappping.ACTIVE + ? onAddLicenseModelClick + : false + } + onAddVSP={ + catalogActiveTab === catalogTabsMappping.ACTIVE + ? onAddSoftwareProductClick + : false + } onSelectVLM={(item, users) => onSelectLicenseModel(item, users, tabsMapping.WORKSPACE) } |