X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2FrecordViewer%2FrecordCard.jsx;h=449177634bdb398b367746816e34561ea528e439;hb=3ea4a6fecbcd4265ad9da9c06720e9d879bfbf57;hp=a577706297e12373a2407f87973b1a0aaa4a2b6c;hpb=579ee20c3c320cbf361f5fd52575a4e939bb7159;p=osm%2FUI.git diff --git a/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx b/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx index a57770629..449177634 100644 --- a/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx +++ b/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx @@ -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) + } +
+
) }) }