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

reinsert IC status refresh on ICs page

This commit is contained in:
Laura Fuentes Grau 2021-05-06 16:09:20 +02:00
parent 1c14087822
commit 19d347040b

View file

@ -134,6 +134,20 @@ class InfrastructureComponents extends Component {
});
}
// get status of VILLASnode and VILLASrelay ICs
this.state.ics.forEach(ic => {
if ((ic.type === "villas-node" || ic.type === "villas-relay")
&& ic.apiurl !== '' && ic.apiurl !== undefined && ic.apiurl !== null && !ic.managedexternally) {
AppDispatcher.dispatch({
type: 'ics/get-status',
url: ic.apiurl,
token: this.state.sessionToken,
ic: ic
});
}
})
}
closeNewModal(data) {