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

fix: align creation of new IC with backend data model

This commit is contained in:
Sonja Happ 2021-03-26 14:17:54 +01:00
parent 1fe9663373
commit cfb40a2f0a

View file

@ -56,6 +56,12 @@ class NewICDialog extends React.Component {
const data = {
managedexternally: this.state.managedexternally,
manager: this.state.manager,
name: this.state.name,
type: this.state.type,
category: this.state.category,
uuid: this.state.uuid,
description: this.state.description,
location: this.state.location,
parameters: parameters
};
@ -65,10 +71,12 @@ class NewICDialog extends React.Component {
if (this.state.websocketurl != null && this.state.websocketurl !== "") {
parameters.websocketurl = this.state.websocketurl;
data.websocketurl = this.state.websocketurl;
}
if (this.state.apiurl != null && this.state.apiurl !== "") {
parameters.apiurl = this.state.apiurl;
data.apiurl = this.state.apiurl;
}
this.props.onClose(data);