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

Merge branch 'master' of git.rwth-aachen.de:acs/public/villas/web

This commit is contained in:
irismarie 2021-04-01 12:57:21 +02:00
commit b4d9c67112

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);