X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2FrecordViewer%2FrecordCard.jsx;h=54cfab8a6e6f3fe43bbc8f6d7251256ddd2cb440;hp=a577706297e12373a2407f87973b1a0aaa4a2b6c;hb=refs%2Fheads%2Fmaster_vca_intg;hpb=579ee20c3c320cbf361f5fd52575a4e939bb7159 diff --git a/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx b/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx index a57770629..54cfab8a6 100644 --- a/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx +++ b/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx @@ -106,7 +106,7 @@ export default class RecordCard extends React.Component { //That match the currently selected job id if(v.id == cardData.id) { return v.primitive.map(function(p, i) { - return + return }) } }) @@ -135,11 +135,35 @@ export default class RecordCard extends React.Component { if(vdur.hasOwnProperty('volumes') && (vdur.volumes.length > 0)) { displayVolumesTab = true; vdur.volumes.map((volume, vi) => { - let html = Prism.highlight(JSON.stringify(volume), Prism.languages.javascript, 'javascript'); + // let html = Prism.highlight(JSON.stringify(volume), Prism.languages.javascript, 'javascript'); + // volumesHTML.push( + //
+                //       
+                //     
+ function buildProperties(obj) { + let p = []; + _.forEach(obj, function(v, k) { + p.push( +
+
{k}
+
{v.constructor.name != 'Object' ? v : buildProperties(v)}
+
+ ) + }); + return p; + } volumesHTML.push( -
-                      
-                    
+
+
+ VOLUME +
+
+ { + buildProperties(volume) + } +
+
) }) } @@ -184,7 +208,7 @@ export default class RecordCard extends React.Component { //That match the currently selected job id if(v.id == cardData.id) { return v.primitive.map(function(p, i) { - return + return }) } }) @@ -305,7 +329,7 @@ export default class RecordCard extends React.Component { if (this.props.type == 'nsr') { primitivesTabTitle = 'Service Primitive'; } else if (this.props.type == 'vnfr') { - primitivesTabTitle = 'Service Primitive' + primitivesTabTitle = 'Config Primitive' } tabList.push(