From ce1d343e682f9f173ae4f10b8b5fb3d5834baac7 Mon Sep 17 00:00:00 2001
From: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
Date: Mon, 15 Jan 2018 14:44:48 +0200
Subject: Adding owner id to onboarding tiles

Issue-ID: SDC-930
Change-Id: If8e66f45f088950acfef8dd7a5a43eb97d0de9ab
Signed-off-by: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
---
 .../src/sdc-app/onboarding/onboard/CatalogItemDetails.jsx        | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

(limited to 'openecomp-ui/src/sdc-app/onboarding/onboard/CatalogItemDetails.jsx')

diff --git a/openecomp-ui/src/sdc-app/onboarding/onboard/CatalogItemDetails.jsx b/openecomp-ui/src/sdc-app/onboarding/onboard/CatalogItemDetails.jsx
index dc3b3f5ab9..345c91e01b 100644
--- a/openecomp-ui/src/sdc-app/onboarding/onboard/CatalogItemDetails.jsx
+++ b/openecomp-ui/src/sdc-app/onboarding/onboard/CatalogItemDetails.jsx
@@ -17,7 +17,7 @@ import React from 'react';
 import PropTypes from 'prop-types';
 import i18n from 'nfvo-utils/i18n/i18n.js';
 import {catalogItemTypes, migrationStatusMapper} from './onboardingCatalog/OnboardingCatalogConstants.js';
-import {Tile, TileInfo, TileInfoLine} from 'sdc-ui/lib/react';
+import {Tile, TileInfo, TileInfoLine, TileFooter, TileFooterCell} from 'sdc-ui/lib/react';
 import {TooltipWrapper} from './onboardingCatalog/Tooltip.jsx';
 
 const ITEM_TYPE_MAP = {
@@ -35,7 +35,7 @@ const ITEM_TYPE_MAP = {
 
 const CatalogItemDetails = ({catalogItemData, catalogItemTypeClass, onSelect, onMigrate}) => {
 
-	let {vendorName, name} = catalogItemData;
+	let {vendorName, name, owner} = catalogItemData;
 	let {headerText, color, contentIconName} = ITEM_TYPE_MAP[catalogItemTypeClass];
 
 	let onClick = (e) => {
@@ -66,6 +66,11 @@ const CatalogItemDetails = ({catalogItemData, catalogItemTypeClass, onSelect, on
 					<TooltipWrapper className='with-overlay' tooltipClassName='tile-title-info' dataTestId='catalog-item-name'>{name}</TooltipWrapper>
 				</TileInfoLine>
 			</TileInfo>
+				<TileFooter>
+				{owner &&
+					<TileFooterCell>Owner - {owner}</TileFooterCell>
+				}
+				</TileFooter>
 		</Tile>
 	);
 
-- 
cgit 1.2.3-korg

