From: KIRAN KASHALKAR Date: Mon, 21 Nov 2016 22:47:20 +0000 (-0500) Subject: RIFT-15032: launchpad UI - RIFT.ware DEB install - Viewport - icons for nsr X-Git-Tag: v1.1.0~43 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=d053919c779a9eca0ad1ffc12c3063f29fd41cad;p=osm%2FUI.git RIFT-15032: launchpad UI - RIFT.ware DEB install - Viewport - icons for nsr Signed-off-by: KIRAN KASHALKAR --- 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}