summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/sdc-app/onboarding/onboard/workspace
diff options
context:
space:
mode:
authorsvishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>2018-10-18 14:34:47 +0300
committerEinav Keidar <einavw@amdocs.com>2018-10-21 07:45:10 +0000
commit768f706f6f017ca605e0b292619e46b24fda1767 (patch)
tree762f59428389529ebffc22ae36c57898558d6e86 /openecomp-ui/src/sdc-app/onboarding/onboard/workspace
parent5cc93c4c9e4750a4630afa6f4509438ca4925f51 (diff)
vendor view issues fix
Issue-ID: SDC-1850 Change-Id: I13f39b82ea152399ccd43914c893856bc6063cb1 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/WorkspaceView.jsx30
1 files changed, 10 insertions, 20 deletions
diff --git a/openecomp-ui/src/sdc-app/onboarding/onboard/workspace/WorkspaceView.jsx b/openecomp-ui/src/sdc-app/onboarding/onboard/workspace/WorkspaceView.jsx
index bef88df14d..8cc396f6fc 100644
--- a/openecomp-ui/src/sdc-app/onboarding/onboard/workspace/WorkspaceView.jsx
+++ b/openecomp-ui/src/sdc-app/onboarding/onboard/workspace/WorkspaceView.jsx
@@ -17,7 +17,6 @@ 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 {
@@ -28,10 +27,13 @@ const WorkspaceView = props => {
onSelectSoftwareProduct,
searchValue,
onMigrate,
- catalogActiveTab,
- filteredItems: { vspList, vlmList }
+ filteredItems: { vspList, vlmList },
+ isArchived
} = props;
-
+ const handleSelectVSP = (item, users) =>
+ onSelectSoftwareProduct(item, users, tabsMapping.WORKSPACE);
+ const handleSelectVLM = (item, users) =>
+ onSelectLicenseModel(item, users, tabsMapping.WORKSPACE);
return (
<div className="catalog-wrapper workspace-view">
<div className="catalog-header workspace-header">
@@ -41,22 +43,10 @@ const WorkspaceView = props => {
VLMList={vlmList}
VSPList={vspList}
users={users}
- onAddVLM={
- catalogActiveTab === catalogTabsMappping.ACTIVE
- ? onAddLicenseModelClick
- : undefined
- }
- onAddVSP={
- catalogActiveTab === catalogTabsMappping.ACTIVE
- ? onAddSoftwareProductClick
- : undefined
- }
- onSelectVLM={(item, users) =>
- onSelectLicenseModel(item, users, tabsMapping.WORKSPACE)
- }
- onSelectVSP={(item, users) =>
- onSelectSoftwareProduct(item, users, tabsMapping.WORKSPACE)
- }
+ onAddVLM={!isArchived ? onAddLicenseModelClick : undefined}
+ onAddVSP={!isArchived ? onAddSoftwareProductClick : undefined}
+ onSelectVLM={handleSelectVLM}
+ onSelectVSP={handleSelectVSP}
onMigrate={onMigrate}
filter={searchValue}
/>