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

add missing FileSaver import in IC page, add horizontal line in villas-relay (gateway) page

This commit is contained in:
Sonja Happ 2021-05-07 10:20:22 +02:00
parent 16c0dd1760
commit 9f1555ba73

View file

@ -25,6 +25,7 @@ import moment from 'moment';
import ReactJson from 'react-json-view';
import ConfirmCommand from './confirm-command';
import IconButton from '../common/icon-button';
import FileSaver from 'file-saver';
@ -202,7 +203,7 @@ class InfrastructureComponent extends React.Component {
</Table>
</Col>
<Col>
{this.state.ic.type === "villas-node" ?
{this.state.category ==="gateway" && this.state.ic.type === "villas-node" ?
<>
<div className='section-buttons-group-right'>
<IconButton
@ -244,7 +245,7 @@ class InfrastructureComponent extends React.Component {
</>
: <div />}
{this.state.ic.type === "villas-relay" ?
{this.state.category ==="gateway" && this.state.ic.type === "villas-relay" ?
<>
<div className='section-buttons-group-right'>
<IconButton
@ -256,6 +257,7 @@ class InfrastructureComponent extends React.Component {
iconStyle={iconStyle}
/>
</div>
<hr/>
<b>Raw Status</b>
{this.state.ic.statusupdateraw !== null && this.isJSON(this.state.ic.statusupdateraw) ?
<ReactJson
@ -271,7 +273,7 @@ class InfrastructureComponent extends React.Component {
<div />}
</Col>
</Row>
{this.state.ic.type === "villas-node" ?
{this.state.category ==="gateway" && this.state.ic.type === "villas-node" ?
<>
<div className='section-buttons-group-right'>
<IconButton