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

smaller code style improvements

This commit is contained in:
Steffen Vogel 2021-03-08 14:26:30 +01:00
parent 81f156f019
commit 05ce521376
3 changed files with 4 additions and 3 deletions

View file

@ -143,7 +143,7 @@ class ICDialog extends React.Component {
<img alt={"Graph image download failed and/or incorrect image API URL"} src={graphURL}/>
</div>
{this.props.userRole === "Admin" ?
{this.props.user.role === "Admin" ?
<div>
<h5>Controls:</h5>
<div className='solid-button'>

View file

@ -531,6 +531,7 @@ class InfrastructureComponents extends Component {
onClose={data => this.closeICModal(data)}
ic={this.state.modalIC}
token={this.state.sessionToken}
user={this.state.currentUser}
sendControlCommand={(command, ic) => this.sendControlCommand(command, ic)}/>
</div>
);

View file

@ -870,7 +870,7 @@ class Scenario extends React.Component {
/>
</Table>
{this.state.ExternalICInUse ? (
{this.state.ExternalICInUse ?
<div style={{ float: 'left' }}>
<ICAction
ics={this.state.ics}
@ -885,7 +885,7 @@ class Scenario extends React.Component {
{ id: '3', title: 'Resume', data: { action: 'resume' } }
]} />
</div>
) : (<div />)
: <div />
}
< div style={{ clear: 'both' }} />