1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

small fixes

This commit is contained in:
irismarie 2021-04-30 16:53:35 +02:00
parent bb72d8ce50
commit 81209d4ef0
2 changed files with 9 additions and 2 deletions

View file

@ -223,7 +223,7 @@ class InfrastructureComponent extends React.Component {
/> : <div>No valid JSON raw data available.</div>}
<b>Raw Config</b>
{this.isJSON(this.state.ic.statusupdateraw["config"]) ?
{this.state.ic.statusupdateraw && this.isJSON(this.state.ic.statusupdateraw["config"]) ?
<ReactJson
src={this.state.ic.statusupdateraw["config"]}
name={false}
@ -233,7 +233,7 @@ class InfrastructureComponent extends React.Component {
collapsed={0}
/> : <div>No valid config JSON raw data available.</div>}
<b>Raw Statistics</b>
{this.isJSON(this.state.ic.statusupdateraw["statistics"]) ?
{this.state.ic.statusupdateraw && this.isJSON(this.state.ic.statusupdateraw["statistics"]) ?
<ReactJson
src={this.state.ic.statusupdateraw["statistics"]}
name={false}

View file

@ -434,7 +434,14 @@ class InfrastructureComponents extends Component {
}
render() {
const buttonStyle = {
marginLeft: '10px',
}
const iconStyle = {
height: '30px',
width: '30px'
}
let managerTable = this.getICCategoryTable(this.state.managers, false, "IC Managers")
let simulatorTable = this.getICCategoryTable(this.state.simulators, true, "Simulators")