X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2Flaunchpad_card%2FjobListCard.jsx;h=8253f0a1a2f4163a5e3c538ad9167c6713c8f174;hp=5cdcb855186e4ac1a43595fb7118168f93ef0554;hb=e54a11db11ddface22acfd29657eaf967827387a;hpb=cfbe2bba8c107d8d8f32601fe0dcd128bcbfa077 diff --git a/skyquake/plugins/launchpad/src/launchpad_card/jobListCard.jsx b/skyquake/plugins/launchpad/src/launchpad_card/jobListCard.jsx index 5cdcb8551..8253f0a1a 100644 --- a/skyquake/plugins/launchpad/src/launchpad_card/jobListCard.jsx +++ b/skyquake/plugins/launchpad/src/launchpad_card/jobListCard.jsx @@ -57,8 +57,13 @@ class JobListCard extends React.Component { } getJobDetails(job) { let jobDetails = null; - if (job['job-status-details']) { - let jobDetailsArray = job['job-status-details'].split(/\\n/); + if (job['job-status-details'] || job['execution-error-details']) { + let jobDetailsArray = []; + if (job['job-status-details']) { + jobDetailsArray = job['job-status-details'].split(/\\n/); + } else if (job['execution-error-details']) { + jobDetailsArray = job['execution-error-details'].split(/\\n/); + } let jobDetailsText = []; jobDetailsArray && jobDetailsArray.map((jobDetail) => { jobDetailsText.push(jobDetail); @@ -140,6 +145,7 @@ class JobListCard extends React.Component { let self = this; let jobListStatus = this.getStatusColor(props['execution-status'] ); let hideParameters = this.state.hideParameters; + let jobDetailsHTML = this.getJobDetails(this.props); return (
@@ -169,6 +175,7 @@ class JobListCard extends React.Component {
+ {jobDetailsHTML} ) }