From cfb40a2f0af013025f7f45127a29605ef77bc958 Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Fri, 26 Mar 2021 14:17:54 +0100 Subject: [PATCH] fix: align creation of new IC with backend data model --- src/ic/new-ic.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ic/new-ic.js b/src/ic/new-ic.js index 3fe9fb8..cb5c8c0 100644 --- a/src/ic/new-ic.js +++ b/src/ic/new-ic.js @@ -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);