X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2FrecordViewer%2FrecordCard.jsx;h=737ef701d7db6d9dde2ea7c0877db2242fc12639;hp=a577706297e12373a2407f87973b1a0aaa4a2b6c;hb=573c1249edf74aa6cc50af1f92fd38832149d3eb;hpb=579ee20c3c320cbf361f5fd52575a4e939bb7159;ds=sidebyside diff --git a/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx b/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx index a57770629..737ef701d 100644 --- a/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx +++ b/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx @@ -134,12 +134,32 @@ export default class RecordCard extends React.Component { notice =
  • * If a separate browser window does not open, please check if the popup was blocked and allow it.
  • 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'); + vdur.volumer.map((volume, vi) => { + // let html = Prism.highlight(JSON.stringify(volume), Prism.languages.javascript, 'javascript'); + // volumesHTML.push( + //
    +                //       
    +                //     
    + let properties = []; + _.forEach(volume, function(v, k) { + properties.push( +
    +
    {k}
    +
    {v}
    +
    + ) + }) volumesHTML.push( -
    -                      
    -                    
    +
    +
    + VOLUME +
    + + { + properties + } +
    ) }) }