X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2FrecordViewer%2FrecordCard.jsx;h=c928ffd0c2224605b6326117116678f6186d73d3;hb=e6825390de34e1cb4681c8f613cbdcf700dc58ce;hp=dc092bc9d7da4c454b1c65bcb68320de9f543ad2;hpb=5887e136dc63a909acba0e529dacf383df9061d7;p=osm%2FUI.git diff --git a/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx b/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx index dc092bc9d..c928ffd0c 100644 --- a/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx +++ b/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx @@ -1,6 +1,6 @@ /* - * + * * Copyright 2016 RIFT.IO Inc * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -90,16 +90,18 @@ export default class RecordCard extends React.Component {
{ //Sort for recent on top - this.props.jobData.sort(function(a,b){ + this.props.jobData + .sort(function(a,b){ return parseInt(b['job-id']) - parseInt(a['job-id']); - }).map(function(job){ + }) + .map(function(job){ //Return only vnfr configs if(job["triggered-by"] == 'vnf-primitive') { return job.vnfr.map(function(v){ //That match the currently selected job id if(v.id == cardData.id) { return v.primitive.map(function(p, i) { - return + return }) } }) @@ -157,16 +159,16 @@ export default class RecordCard extends React.Component {
{sortedJobs.map(function(job, i){ if(job["triggered-by"] == 'ns-primitive') { - return + return } }) .concat(sortedJobs.map(function(job) { if(!job.hasOwnProperty('job-name') && (job["triggered-by"] == 'ns-primitive')) { - return job.vnfr.map(function(v){ + return job.vnfr.map(function(v, h){ //That match the currently selected job id if(v.id == cardData.id) { return v.primitive.map(function(p, i) { - return + return }) } }) @@ -207,7 +209,7 @@ export default class RecordCard extends React.Component { let nfviMetrics = ; metricsAndParams.push(
- {components.sort().map(function(c, k) { + {components.map(function(c, k) { return
{c.title}{c.component}
})}
) @@ -325,7 +327,7 @@ export default class RecordCard extends React.Component { if (consoleUrlsComponent) { let consoleUrlsTabTitle = ''; consoleUrlsTabTitle = 'VDU Console Links'; - + tabList.push( {consoleUrlsTabTitle} );