From 3645381bcb04ffa0cc6d485c9e9f22ab36621356 Mon Sep 17 00:00:00 2001 From: KIRAN KASHALKAR Date: Tue, 21 Mar 2017 16:33:00 -0400 Subject: [PATCH] RIFT-15872: NS Service Primitive Job details display in the UI needs improvement Signed-off-by: KIRAN KASHALKAR --- .../launchpad/src/launchpad_card/jobListCard.jsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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

-- 2.25.1