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:
parent
8ea7ae3a97
commit
22da583f65
1 changed files with 9 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue