X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2FrecordViewer%2FrecordViewStore.js;h=3c446760fd6957859d153a2cfebc05f647bebef0;hb=f07c8447b59c6fb520dca8e83c514f55116c8d5e;hp=b9fded5475189da398d72aab9654d3ed9d185e70;hpb=c65d33acee808925bf2a7e01c2ee17b939fbd24d;p=osm%2FUI.git diff --git a/skyquake/plugins/launchpad/src/recordViewer/recordViewStore.js b/skyquake/plugins/launchpad/src/recordViewer/recordViewStore.js index b9fded547..3c446760f 100644 --- a/skyquake/plugins/launchpad/src/recordViewer/recordViewStore.js +++ b/skyquake/plugins/launchpad/src/recordViewer/recordViewStore.js @@ -407,7 +407,8 @@ function connectionManager(type, connection) { name: nsrs.name, id: nsrs.id, nsd_name: nsrs.nsd_name, - type: 'nsr' + type: 'nsr', + logo: nsrs.nsd && nsrs.nsd.logo }); // Scaled VNFRs @@ -424,10 +425,12 @@ function connectionManager(type, connection) { sgInstance['vnfrs'] && sgInstance['vnfrs'].map((vnfr, vnfrIndex) => { scaledVnfrs.push(vnfr); + let vnfrObj = _.findWhere(nsrs.vnfrs, {id: vnfr}); scaledVnfNav.vnfr.push({ - name: _.findWhere(nsrs.vnfrs, {id: vnfr})['short-name'], + name: vnfrObj['short-name'], id: vnfr, - type: 'vnfr' + type: 'vnfr', + logo: vnfrObj['vnfd'] && vnfrObj['vnfd']['logo'] }); }); nav.push(scaledVnfNav); @@ -440,7 +443,8 @@ function connectionManager(type, connection) { nav.push({ name: vnfr["short-name"], id: vnfr.id, - type: 'vnfr' + type: 'vnfr', + logo: vnfr['vnfd'] && vnfr['vnfd']['logo'] }); } });