mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
IC page: show only villas-relay status
This commit is contained in:
parent
81209d4ef0
commit
92a4f5ec4d
1 changed files with 21 additions and 4 deletions
25
src/ic/ic.js
25
src/ic/ic.js
|
@ -211,8 +211,11 @@ class InfrastructureComponent extends React.Component {
|
|||
</tbody>
|
||||
</Table>
|
||||
</Col>
|
||||
<Col><b>Raw Status</b>
|
||||
{this.isJSON(this.state.ic.statusupdateraw) ?
|
||||
<Col>
|
||||
{this.state.ic.type === "villas-node" ?
|
||||
<>
|
||||
<b>Raw Status</b>
|
||||
{this.state.ic.statusupdateraw !== null && this.isJSON(this.state.ic.statusupdateraw) ?
|
||||
<ReactJson
|
||||
src={this.state.ic.statusupdateraw}
|
||||
name={false}
|
||||
|
@ -243,8 +246,6 @@ class InfrastructureComponent extends React.Component {
|
|||
collapsed={0}
|
||||
/> : <div>No valid statistics JSON raw data available.</div>}
|
||||
|
||||
{this.state.ic.type === "villas-node" ?
|
||||
<>
|
||||
<div className='section-buttons-group-right'>
|
||||
<Button style={{ margin: '5px' }} size='sm' onClick={() => this.downloadGraph(graphURL)}><Icon
|
||||
icon="download" /></Button>
|
||||
|
@ -275,6 +276,22 @@ class InfrastructureComponent extends React.Component {
|
|||
</>
|
||||
: <div />}
|
||||
|
||||
{this.state.ic.type === "villas-relay" ?
|
||||
<>
|
||||
<b>Raw Status</b>
|
||||
{this.state.ic.statusupdateraw !== null && this.isJSON(this.state.ic.statusupdateraw) ?
|
||||
<ReactJson
|
||||
src={this.state.ic.statusupdateraw}
|
||||
name={false}
|
||||
displayDataTypes={false}
|
||||
displayObjectSize={false}
|
||||
enableClipboard={false}
|
||||
collapsed={0}
|
||||
/> : <div>No valid JSON raw data available.</div>}
|
||||
</>
|
||||
:
|
||||
<div />}
|
||||
|
||||
</Col>
|
||||
</Row>
|
||||
</Container>
|
||||
|
|
Loading…
Add table
Reference in a new issue