From 92a4f5ec4d563d201a36394716b91b00a70c9330 Mon Sep 17 00:00:00 2001 From: Laura Fuentes Grau Date: Wed, 5 May 2021 16:03:27 +0200 Subject: [PATCH] IC page: show only villas-relay status --- src/ic/ic.js | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/src/ic/ic.js b/src/ic/ic.js index 0d2abfe..a62eaa2 100644 --- a/src/ic/ic.js +++ b/src/ic/ic.js @@ -211,8 +211,11 @@ class InfrastructureComponent extends React.Component { - Raw Status - {this.isJSON(this.state.ic.statusupdateraw) ? + + {this.state.ic.type === "villas-node" ? + <> + Raw Status + {this.state.ic.statusupdateraw !== null && this.isJSON(this.state.ic.statusupdateraw) ? :
No valid statistics JSON raw data available.
} - {this.state.ic.type === "villas-node" ? - <>
@@ -275,6 +276,22 @@ class InfrastructureComponent extends React.Component { :
} + {this.state.ic.type === "villas-relay" ? + <> + Raw Status + {this.state.ic.statusupdateraw !== null && this.isJSON(this.state.ic.statusupdateraw) ? + :
No valid JSON raw data available.
} + + : +
} +