From: KIRAN KASHALKAR Date: Mon, 21 Nov 2016 23:04:27 +0000 (-0500) Subject: RIFT-15032: launchpad UI - RIFT.ware DEB install - Viewport - icons for nsr X-Git-Tag: v1.1.0~42 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=e6825390de34e1cb4681c8f613cbdcf700dc58ce;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 50ef061ee..edb4dbbfd 100644 --- a/skyquake/plugins/launchpad/src/recordViewer/recordNavigator.jsx +++ b/skyquake/plugins/launchpad/src/recordViewer/recordNavigator.jsx @@ -35,10 +35,21 @@ export default class RecordNavigator extends React.Component{ getDescriptorTypeFromRecordType = (recordType) => { if (recordType == 'nsr') { - return 'nsd'; + return 'nsd'; } else if (recordType == 'vnfr') { - return 'vnfd'; + return 'vnfd'; } + + return null; + } + + getDescriptorIdFromRecord = (record) => { + if (record.type && record.type == 'nsr') { + return nsr.nsd && nsr.nsd.id; + } else if (record.type && record.type == 'vnfr') { + return vnfr.vnfd && vnfr.vnfd.id; + } + return null; } @@ -70,7 +81,7 @@ export default class RecordNavigator extends React.Component{

{vnfr.name}

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

{n.name}