diff options
author | andre.schmid <andre.schmid@est.tech> | 2021-07-22 11:54:07 +0100 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2021-08-12 07:44:53 +0000 |
commit | 36fa9cdd9fb26aa3fbd3a1f35b2d8344d1301c11 (patch) | |
tree | 636aef4d50e634b7eea17a93025c4836fce43469 /openecomp-ui/src/sdc-app/onboarding/softwareProduct/landingPage | |
parent | ead5c383df30c94a83ee1d7e2c869cc5b23697a2 (diff) |
Specify a model while creating a VSP
Change-Id: I6ed0a3c979e14c62ecd6488dfd70589df40636e9
Issue-ID: SDC-3656
Signed-off-by: André Schmid <andre.schmid@est.tech>
Diffstat (limited to 'openecomp-ui/src/sdc-app/onboarding/softwareProduct/landingPage')
-rw-r--r-- | openecomp-ui/src/sdc-app/onboarding/softwareProduct/landingPage/SoftwareProductLandingPageView.jsx | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/landingPage/SoftwareProductLandingPageView.jsx b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/landingPage/SoftwareProductLandingPageView.jsx index 0f18a44708..5f208345f7 100644 --- a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/landingPage/SoftwareProductLandingPageView.jsx +++ b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/landingPage/SoftwareProductLandingPageView.jsx @@ -1,5 +1,6 @@ /* * Copyright © 2016-2018 European Support Limited + * Modifications Copyright (C) 2021 Nordix Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,7 +37,8 @@ const SoftwareProductPropType = PropTypes.shape({ licenseType: PropTypes.string, status: PropTypes.string, licensingData: PropTypes.object, - validationData: PropTypes.object + validationData: PropTypes.object, + selectedModelList: PropTypes.arrayOf(PropTypes.string) }); const ComponentPropType = PropTypes.shape({ @@ -259,7 +261,8 @@ const ProductSummary = ({ name = '', description = '', vendorName = '', - fullCategoryDisplayName = '' + fullCategoryDisplayName = '', + selectedModelList = [] } = currentSoftwareProduct; return ( <div className="details-panel"> @@ -286,6 +289,20 @@ const ProductSummary = ({ </div> </div> <div className="detail-col"> + <div className="title">{i18n('Model')}</div> + <div className="description"> + {selectedModelList.length > 0 ? ( + <ul> + {selectedModelList.map(value => ( + <li>{value}</li> + ))} + </ul> + ) : ( + i18n('model.sdc.label') + )} + </div> + </div> + <div className="detail-col"> <div className="title extra-large"> {i18n('License Agreement')} </div> |