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:
parent
81f156f019
commit
05ce521376
3 changed files with 4 additions and 3 deletions
|
@ -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'>
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
|
|
|
@ -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' }} />
|
||||
|
|
Loading…
Add table
Reference in a new issue