X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2FrecordViewer%2FrecordNavigator.jsx;h=95107ca9864cebcca9588b75e02cd2765d7e5094;hb=refs%2Fchanges%2F76%2F776%2F1;hp=6c765011422b7a58fbf4d02b76ebe7aa5ee2487c;hpb=f07c8447b59c6fb520dca8e83c514f55116c8d5e;p=osm%2FUI.git diff --git a/skyquake/plugins/launchpad/src/recordViewer/recordNavigator.jsx b/skyquake/plugins/launchpad/src/recordViewer/recordNavigator.jsx index 6c7650114..95107ca98 100644 --- a/skyquake/plugins/launchpad/src/recordViewer/recordNavigator.jsx +++ b/skyquake/plugins/launchpad/src/recordViewer/recordNavigator.jsx @@ -32,6 +32,17 @@ 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 +71,7 @@ export default class RecordNavigator extends React.Component{