From: KIRAN KASHALKAR Date: Tue, 21 Mar 2017 20:33:00 +0000 (-0400) Subject: RIFT-15872: NS Service Primitive Job details display in the UI needs improvement X-Git-Tag: v2.0.0~28 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=3645381bcb04ffa0cc6d485c9e9f22ab36621356;p=osm%2FUI.git RIFT-15872: NS Service Primitive Job details display in the UI needs improvement Signed-off-by: KIRAN KASHALKAR --- diff --git a/skyquake/plugins/launchpad/src/launchpad_card/jobListCard.jsx b/skyquake/plugins/launchpad/src/launchpad_card/jobListCard.jsx index 2a665406f..0f345ea7a 100644 --- a/skyquake/plugins/launchpad/src/launchpad_card/jobListCard.jsx +++ b/skyquake/plugins/launchpad/src/launchpad_card/jobListCard.jsx @@ -18,6 +18,7 @@ import React from 'react'; import './jobListCard.scss' +import TreeView from 'react-treeview'; import Uptime from 'widgets/uptime/uptime.jsx'; import Modal from 'react-awesome-modal'; @@ -57,6 +58,12 @@ class JobListCard extends React.Component { getJobDetails(job) { let jobDetails = null; if (job['job-status-details']) { + let jobDetailsArray = job['job-status-details'].split(/\\n/); + let jobDetailsText = []; + jobDetailsArray && jobDetailsArray.map((jobDetail) => { + jobDetailsText.push(jobDetail); + jobDetailsText.push(
); + }); jobDetails = (

Job Details

@@ -66,7 +73,9 @@ class JobListCard extends React.Component { height="400" effect="fadeInUp">
-
{job['job-status-details']}
+ Job Details} key={'job-details'} defaultCollapsed={false}> +

{jobDetailsText}

+

Close