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

Make properties of IC editable #243

This commit is contained in:
Sonja Happ 2020-07-15 13:48:28 +02:00
parent 8ea7ae3a97
commit 22da583f65

View file

@ -73,6 +73,10 @@ class EditICDialog extends React.Component {
this.setState({ [e.target.id]: e.target.value });
}
handlePropertiesChange(data) {
this.setState({ properties: data });
}
resetState() {
this.setState({
name: this.props.ic.name,
@ -118,7 +122,11 @@ class EditICDialog extends React.Component {
</FormGroup>
<FormGroup controlId='properties'>
<FormLabel column={false}>Properties</FormLabel>
<ParametersEditor content={this.state.properties} disabled={false} />
<ParametersEditor
content={this.state.properties}
disabled={false}
onChange={(data) => this.handlePropertiesChange(data)}
/>
</FormGroup>
</form>
</Dialog>