X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2FrecordViewer%2FrecordCard.jsx;h=8a67c96719445b6421a7d8a6b04b357bed83c5a4;hp=41f70073d9999eedb9a08bf5cbf0f2e1aa952195;hb=c2edea79c193c2817fdf42a3b3dca683335dffa7;hpb=23b52a272f8520ebac6391e72d5f8576152db8cb
diff --git a/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx b/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx
index 41f70073d..8a67c9671 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
})
}
})
@@ -132,14 +132,38 @@ 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('volumer') && (vdur.volumer.length > 0)) {
+ if(vdur.hasOwnProperty('volumes') && (vdur.volumes.length > 0)) {
displayVolumesTab = true;
- vdur.volumer.map((volume, vi) => {
- let html = Prism.highlight(JSON.stringify(volume), Prism.languages.javascript, 'javascript');
+ vdur.volumes.map((volume, vi) => {
+ // 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
})
}
})
@@ -242,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(
@@ -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(