diff --git a/src/common/dialogs/delete-dialog.js b/src/common/dialogs/delete-dialog.js
index cbc0cd8..8d114f4 100644
--- a/src/common/dialogs/delete-dialog.js
+++ b/src/common/dialogs/delete-dialog.js
@@ -16,7 +16,8 @@
******************************************************************************/
import React from 'react';
-import { Button, Modal } from 'react-bootstrap';
+import { Button, Modal, FormLabel } from 'react-bootstrap';
+import {Collapse} from 'react-collapse';
class DeleteDialog extends React.Component {
onModalKeyPress = (event) => {
@@ -35,6 +36,9 @@ class DeleteDialog extends React.Component {
Are you sure you want to delete the {this.props.title} '{this.props.name}'?
+
+ The IC will be deleted if the respective VILLAScontroller sends "gone" state and no component config is using the IC anymore
+
diff --git a/src/ic/edit-ic.js b/src/ic/edit-ic.js
index e5784e0..9e8fe4a 100644
--- a/src/ic/edit-ic.js
+++ b/src/ic/edit-ic.js
@@ -16,9 +16,9 @@
******************************************************************************/
import React from 'react';
-import { FormGroup, FormControl, FormLabel } from 'react-bootstrap';
+import { FormGroup, FormControl, FormLabel, FormCheck } from 'react-bootstrap';
import _ from 'lodash';
-
+import {Collapse} from 'react-collapse';
import Dialog from '../common/dialogs/dialog';
import ParametersEditor from '../common/parameters-editor';
@@ -33,6 +33,7 @@ class EditICDialog extends React.Component {
host: '',
type: '',
category: '',
+ managedexternally: false,
properties: {},
};
}
@@ -61,16 +62,25 @@ class EditICDialog extends React.Component {
data.properties = this.state.properties
}
+ data.managedexternally = this.state.managedexternally;
+
this.props.onClose(data);
+ this.setState({managedexternally: false});
}
} else {
this.props.onClose();
+ this.setState({managedexternally: false});
}
}
handleChange(e) {
+ if(e.target.id === "managedexternally"){
+ this.setState({ managedexternally : !this.state.managedexternally});
+ }
+ else{
this.setState({ [e.target.id]: e.target.value });
+ }
}
handlePropertiesChange(data) {
@@ -83,6 +93,7 @@ class EditICDialog extends React.Component {
host: this.props.ic.host,
type: this.props.ic.type,
category: this.props.ic.category,
+ managedexternally: false,
properties: _.merge({}, _.get(this.props.ic, 'rawProperties'), _.get(this.props.ic, 'properties'))
});
}
@@ -100,6 +111,13 @@ class EditICDialog extends React.Component {
>