X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2FrecordViewer%2FrecordCard.jsx;h=7051aebd0a6e40302997ae25fe7b424ffa002763;hp=449177634bdb398b367746816e34561ea528e439;hb=05dc1675891fa4bc1b4965e57f2e79701029205f;hpb=69b21dcf3409ba25e36802fbe7adfe1452b0d4be diff --git a/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx b/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx index 449177634..7051aebd0 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 }) } }) @@ -144,10 +144,10 @@ export default class RecordCard extends React.Component { let p = []; _.forEach(obj, function(v, k) { p.push( -
+
{k}
-
{v.constructor.name != 'Object' ? v : buildProperties(v)}
+
{(v.constructor.name == 'String' || v.constructor.name == 'Number') ? v : buildProperties(v)}
) }); @@ -208,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 }) } }) @@ -266,7 +266,7 @@ export default class RecordCard extends React.Component { if(this.props.isLoading) { html = } else { - let glyphValue = (this.props.mmmrecordDetailsToggleValue) ? "chevron-left" : "chevron-right"; + let glyphValue = (!this.props.recordDetailsToggleValue) ? "chevron-left" : "chevron-right"; if (this.props.type == 'nsr') { tabList.push(