diff --git a/src/ic/ic-dialog.js b/src/ic/ic-dialog.js index 33cb9e5..bdd4488 100644 --- a/src/ic/ic-dialog.js +++ b/src/ic/ic-dialog.js @@ -1,9 +1,9 @@ import React from 'react'; import {Button, Row, Col} from 'react-bootstrap'; import Dialog from '../common/dialogs/dialog'; -import {Collapse} from 'react-collapse'; import Icon from "../common/icon"; import ConfirmCommand from './confirm-command'; +import JsonView from 'react-json-view'; @@ -72,76 +72,55 @@ class ICDialog extends React.Component { return ( this.onClose(c)} valid={true} size='xl' - blendOutCancel = {true} + blendOutCancel={true} >
- - -
Status:
- { - typeof icStatus !== "undefined" && Object.keys(icStatus).map(statusKey => ( - typeof icStatus[statusKey] === 'object' ? - (
- - - { - Object.keys(icStatus[statusKey]).map(key => ( - typeof icStatus[statusKey][key] === 'object' ? - (
- - + + +
Status:
- {Object.keys(icStatus[statusKey][key]).map(index => ( -
{index + ":"}{icStatus[statusKey][key][index]}
- ))} -
-
) - : - (
{key + ":"}{icStatus[statusKey][key]}
) - )) - } -
+ -
) - : - (
{statusKey + ":"}{icStatus[statusKey]}
) - )) - } - - - -
Graph:
-
- {objectURL !== '' ? ( - this.graphError(e)} alt={"Error"} src={objectURL} /> - ) : ( - Error - )} -
- - {this.props.userRole === "Admin"? ( -
-
Controls:
-
- - -
-
) - : (
) } + - this.closeConfirmModal(c)} /> - -
+ +
Graph:
+
+ {objectURL !== '' ? ( + this.graphError(e)} alt={"Error"} src={objectURL} /> + ) : ( + Error + )} +
+ + {this.props.userRole === "Admin" ? ( +
+
Controls:
+
+ + +
+
) + : (
)} + + this.closeConfirmModal(c)} /> + +
- + ); } } diff --git a/src/ic/ic-status-store.js b/src/ic/ic-status-store.js index 36526c6..4895a8d 100644 --- a/src/ic/ic-status-store.js +++ b/src/ic/ic-status-store.js @@ -35,9 +35,6 @@ class ICStatusStore extends ArrayStore { let tempData = action.data; tempData.icID = action.icid; - // TODO: edit state (e.g. running) of IC according to received state (only for ICs that are NOT managed externally) - // TODO: playback state info to backend using start-edit dispatch for IC - return this.updateElements(state, [tempData]); case 'ic-status/status-error':