summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/sdc-app/onboarding/onboard/workspace
diff options
context:
space:
mode:
authorsvishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>2018-05-01 17:56:49 +0300
committerEinav Keidar <einavw@amdocs.com>2018-05-08 13:13:50 +0000
commitcee71efe88cd29069391f11ef591c7260fb90d7b (patch)
treebb146d119b4c850fc0cc2ea1db8ae8a771f20ad2 /openecomp-ui/src/sdc-app/onboarding/onboard/workspace
parent7a81ddecef54cc8d37c264bc22c01851595d81f2 (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/workspace')
-rw-r--r--openecomp-ui/src/sdc-app/onboarding/onboard/workspace/WorkspaceViewWithFilter.jsx14
1 files changed, 12 insertions, 2 deletions
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)
}