2 * Copyright © 2016-2018 European Support Limited
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 import React from 'react';
17 import DetailsCatalogView from '../DetailsCatalogView.jsx';
18 import i18n from 'nfvo-utils/i18n/i18n.js';
19 import { tabsMapping } from 'sdc-app/onboarding/onboard/OnboardConstants.js';
21 const WorkspaceView = props => {
23 onAddLicenseModelClick,
25 onAddSoftwareProductClick,
27 onSelectSoftwareProduct,
30 filteredItems: { vspList, vlmList },
33 const handleSelectVSP = (item, users) =>
34 onSelectSoftwareProduct(item, users, tabsMapping.WORKSPACE);
35 const handleSelectVLM = (item, users) =>
36 onSelectLicenseModel(item, users, tabsMapping.WORKSPACE);
38 <div className="catalog-wrapper workspace-view">
39 <div className="catalog-header workspace-header">
46 onAddVLM={!isArchived ? onAddLicenseModelClick : undefined}
47 onAddVSP={!isArchived ? onAddSoftwareProductClick : undefined}
48 onSelectVLM={handleSelectVLM}
49 onSelectVSP={handleSelectVSP}
57 export default WorkspaceView;