From d053919c779a9eca0ad1ffc12c3063f29fd41cad Mon Sep 17 00:00:00 2001 From: KIRAN KASHALKAR Date: Mon, 21 Nov 2016 17:47:20 -0500 Subject: [PATCH] RIFT-15032: launchpad UI - RIFT.ware DEB install - Viewport - icons for nsr Signed-off-by: KIRAN KASHALKAR --- .../launchpad/src/recordViewer/recordNavigator.jsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/skyquake/plugins/launchpad/src/recordViewer/recordNavigator.jsx b/skyquake/plugins/launchpad/src/recordViewer/recordNavigator.jsx index 6c7650114..50ef061ee 100644 --- a/skyquake/plugins/launchpad/src/recordViewer/recordNavigator.jsx +++ b/skyquake/plugins/launchpad/src/recordViewer/recordNavigator.jsx @@ -32,6 +32,16 @@ export default class RecordNavigator extends React.Component{ console.log('Bad logo path, using default'); e.target.src = require('style/img/catalog-default.svg'); } + + getDescriptorTypeFromRecordType = (recordType) => { + if (recordType == 'nsr') { + return 'nsd'; + } else if (recordType == 'vnfr') { + return 'vnfd'; + } + return null; + } + render(){ let navClass = 'catalogItems'; @@ -60,7 +70,7 @@ export default class RecordNavigator extends React.Component{

{vnfr.name}

@@ -77,7 +87,7 @@ export default class RecordNavigator extends React.Component{

{n.name}

-- 2.25.1