}
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);
let self = this;
let jobListStatus = this.getStatusColor(props['execution-status'] );
let hideParameters = this.state.hideParameters;
+ let jobDetailsHTML = this.getJobDetails(this.props);
return (
<div className="jobListCard">
<div className="jobListCard--header">
</div>
</div>
</div>
+ {jobDetailsHTML}
</div>
)
}