diff --git a/src/ic/import-ic.js b/src/ic/import-ic.js
index 3fac3bb..5cd1f96 100644
--- a/src/ic/import-ic.js
+++ b/src/ic/import-ic.js
@@ -30,7 +30,7 @@ class ImportICDialog extends React.Component {
this.state = {
name: '',
- endpoint: '',
+ host: '',
uuid: ''
};
}
@@ -45,8 +45,8 @@ class ImportICDialog extends React.Component {
uuid: this.state.uuid
};
- if (this.state.endpoint != null && this.state.endpoint !== "" && this.state.endpoint !== 'http://') {
- data.properties.endpoint = this.state.endpoint;
+ if (this.state.host != null && this.state.host !== "" && this.state.host !== 'http://') {
+ data.host = this.state.host;
}
this.props.onClose(data);
@@ -61,7 +61,7 @@ class ImportICDialog extends React.Component {
}
resetState() {
- this.setState({ name: '', endpoint: 'http://', uuid: '' });
+ this.setState({ name: '', host: 'http://', uuid: '' });
}
loadFile(fileList) {
@@ -81,7 +81,7 @@ class ImportICDialog extends React.Component {
self.imported = true;
self.setState({
name: _.get(ic, 'properties.name') || _.get(ic, 'rawProperties.name'),
- endpoint: _.get(ic, 'properties.endpoint') || _.get(ic, 'rawProperties.endpoint'),
+ host: _.get(ic, 'host'),
uuid: ic.uuid
});
};
@@ -124,8 +124,8 @@ class ImportICDialog extends React.Component {
- Endpoint
- this.handleChange(e)} />
+ Host
+ this.handleChange(e)} />