From c6a41de2f5a2e3217c8364dcd27f297069fc005f Mon Sep 17 00:00:00 2001
From: ilanap <ilanap@amdocs.com>
Date: Tue, 7 Nov 2017 11:54:10 +0200
Subject: Update VLM Overview tab behavior

Issue-ID: SDC-637

Change-Id: I30211422b9af72a8e2dc4fd58713145878881555
Signed-off-by: ilanap <ilanap@amdocs.com>
---
 .../licenseModel/overview/summary/ListButtons.jsx          | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

(limited to 'openecomp-ui/src/sdc-app/onboarding/licenseModel/overview/summary/ListButtons.jsx')

diff --git a/openecomp-ui/src/sdc-app/onboarding/licenseModel/overview/summary/ListButtons.jsx b/openecomp-ui/src/sdc-app/onboarding/licenseModel/overview/summary/ListButtons.jsx
index 3d81aa5d5c..f02c82d205 100644
--- a/openecomp-ui/src/sdc-app/onboarding/licenseModel/overview/summary/ListButtons.jsx
+++ b/openecomp-ui/src/sdc-app/onboarding/licenseModel/overview/summary/ListButtons.jsx
@@ -19,18 +19,22 @@ import Tabs from 'sdc-ui/lib/react/Tabs.js';
 import Tab from 'sdc-ui/lib/react/Tab.js';
 import i18n from 'nfvo-utils/i18n/i18n.js';
 
-function ListButtons ({onTabSelect, selectedTab}) {
+function ListButtons ({onTabSelect, selectedTab, hasOrphans, hasLicensing}) {
+	// no data, no tabs
+	if (!hasLicensing && !hasOrphans) {
+		return null;
+	}
 	return (
 		<Tabs 
 			onTabClick={(tabId) => onTabSelect(tabId)}
-			activeTab={selectedTab} 
-			className='overview-buttons-section' 
+			activeTab={selectedTab}
+			className='overview-buttons-section'
 			type='header' >
-			<Tab 
+			<Tab
 				tabId={selectedButton.VLM_LIST_VIEW}
 				title={i18n('Connections List')}
 				data-test-id='vlm-overview-vlmlist-tab' />
-			<Tab 
+			<Tab
 				tabId={selectedButton.NOT_IN_USE}
 				title={i18n('Orphans List')}
 				data-test-id='vlm-overview-orphans-tab' />
-- 
cgit 1.2.3-korg

