From 9f1555ba730c170d39a1aa2f498fc56bd2b311d8 Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Fri, 7 May 2021 10:20:22 +0200 Subject: [PATCH] add missing FileSaver import in IC page, add horizontal line in villas-relay (gateway) page --- src/ic/ic.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ic/ic.js b/src/ic/ic.js index 0bbd368..40e300b 100644 --- a/src/ic/ic.js +++ b/src/ic/ic.js @@ -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 { - {this.state.ic.type === "villas-node" ? + {this.state.category ==="gateway" && this.state.ic.type === "villas-node" ? <>
:
} - {this.state.ic.type === "villas-relay" ? + {this.state.category ==="gateway" && this.state.ic.type === "villas-relay" ? <>
+
Raw Status {this.state.ic.statusupdateraw !== null && this.isJSON(this.state.ic.statusupdateraw) ? } - {this.state.ic.type === "villas-node" ? + {this.state.category ==="gateway" && this.state.ic.type === "villas-node" ? <>