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=88ff709a44c52e7e0f5939a56843f5a50ac22593;hb=05dc1675891fa4bc1b4965e57f2e79701029205f;hpb=64b803dbd876e15a0a2d4ca46d8ce81ac18915f6 diff --git a/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx b/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx index 88ff709a4..7051aebd0 100644 --- a/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx +++ b/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx @@ -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)}
) }); @@ -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(