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:
commit
b4d9c67112
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue