From 6d59f83002cefaf79ed857652c610cdfc0876111 Mon Sep 17 00:00:00 2001 From: Laura Fuentes Grau Date: Sat, 12 Dec 2020 20:08:22 +0100 Subject: [PATCH] Format IC dialog window #265 --- src/ic/ic-dialog.js | 51 ++++++++++++++++++++++++++++----------------- 1 file changed, 32 insertions(+), 19 deletions(-) diff --git a/src/ic/ic-dialog.js b/src/ic/ic-dialog.js index 4e0e9a4..9b29d9c 100644 --- a/src/ic/ic-dialog.js +++ b/src/ic/ic-dialog.js @@ -1,5 +1,5 @@ import React from 'react'; -import {FormLabel, Button} from 'react-bootstrap'; +import {Button, Row, Col} from 'react-bootstrap'; import Dialog from '../common/dialogs/dialog'; import {Collapse} from 'react-collapse'; import Icon from "../common/icon"; @@ -47,6 +47,9 @@ class ICDialog extends React.Component { render() { + let icStatus = this.props.icStatus; + delete icStatus['icID']; + let objectURL='' if(typeof this.props.icGraph !== "undefined") { objectURL = this.props.icGraph.objectURL @@ -55,46 +58,52 @@ class ICDialog extends React.Component { return ( this.onClose(c)} valid={true} - size='lg' + size='xl' + blendOutCancel = {true} >
- Status + + +
Status:
{ - typeof this.props.icStatus !== "undefined" && Object.keys(this.props.icStatus).map(statusKey => ( - typeof this.props.icStatus[statusKey] === 'object' ? + typeof icStatus !== "undefined" && Object.keys(icStatus).map(statusKey => ( + typeof icStatus[statusKey] === 'object' ? (
{ - Object.keys(this.props.icStatus[statusKey]).map(key => ( - typeof this.props.icStatus[statusKey][key] === 'object' ? + Object.keys(icStatus[statusKey]).map(key => ( + typeof icStatus[statusKey][key] === 'object' ? (
- {Object.keys(this.props.icStatus[statusKey][key]).map(index => ( -
{index + ": " + this.props.icStatus[statusKey][key][index]}
+ {Object.keys(icStatus[statusKey][key]).map(index => ( +
{index + ": " + icStatus[statusKey][key][index]}
))}
) : - (
{key + ": " + this.props.icStatus[statusKey][key]}
) + (
{key + ": " + icStatus[statusKey][key]}
) )) }
) : - (
{statusKey + ": " + this.props.icStatus[statusKey]}
) + (
{statusKey + ": " + icStatus[statusKey]}
) )) } -
Graph:
+ + + +
Graph:
{objectURL !== '' ? ( this.graphError(e)} alt={"Error"} src={objectURL} /> @@ -102,14 +111,18 @@ class ICDialog extends React.Component { Error )}
- -
Controls
- - + +
Controls:
+
+ + +
this.closeConfirmModal(c)} /> - + +
+
);