diff --git a/src/ic/ic.js b/src/ic/ic.js index b9f9575..f61bd3d 100644 --- a/src/ic/ic.js +++ b/src/ic/ic.js @@ -222,6 +222,27 @@ class InfrastructureComponent extends React.Component { collapsed={0} /> :
No valid JSON raw data available.
} + Raw Config + {this.isJSON(this.state.ic.statusupdateraw["config"]) ? + :
No valid config JSON raw data available.
} + Raw Statistics + {this.isJSON(this.state.ic.statusupdateraw["statistics"]) ? + :
No valid statistics JSON raw data available.
} + {this.state.ic.type === "villas-node" ? <>
diff --git a/src/ic/ics-data-manager.js b/src/ic/ics-data-manager.js index 44c85c3..fcfd5db 100644 --- a/src/ic/ics-data-manager.js +++ b/src/ic/ics-data-manager.js @@ -102,7 +102,11 @@ class IcsDataManager extends RestDataManager { } getStatus(url,token,ic){ - RestAPI.get(url + "/status", null).then(response => { + let requestURL = url; + if(ic.type === "villas-node"){ + requestURL += "/status"; + } + RestAPI.get(requestURL, null).then(response => { AppDispatcher.dispatch({ type: 'ics/status-received', data: response, @@ -147,7 +151,7 @@ class IcsDataManager extends RestDataManager { let ws_api = ic.websocketurl.split("/") let ws_name = ws_api[ws_api.length-1] // name is the last element in the websocket url - RestAPI.get(url + "/node/" +ws_name + "/stats", null).then(response => { + RestAPI.get(url + "/node/" + ws_name + "/stats", null).then(response => { AppDispatcher.dispatch({ type: 'ics/statistics-received', data: response,