mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
show simluator properties in edit dialog
This commit is contained in:
parent
7dd9c0d431
commit
a4f7be81f4
1 changed files with 5 additions and 0 deletions
|
@ -24,6 +24,7 @@ import { FormGroup, FormControl, ControlLabel } from 'react-bootstrap';
|
|||
import _ from 'lodash';
|
||||
|
||||
import Dialog from './dialog';
|
||||
import ParametersEditor from '../parameters-editor';
|
||||
|
||||
class EditSimulatorDialog extends React.Component {
|
||||
valid = true;
|
||||
|
@ -82,6 +83,10 @@ class EditSimulatorDialog extends React.Component {
|
|||
<FormControl type="text" placeholder={_.get(this.props.simulator, 'rawProperties.endpoint')} value={this.state.endpoint || 'http://' } onChange={(e) => this.handleChange(e)} />
|
||||
<FormControl.Feedback />
|
||||
</FormGroup>
|
||||
<FormGroup controlId='properties'>
|
||||
<ControlLabel>Properties</ControlLabel>
|
||||
<ParametersEditor content={_.merge({}, this.props.simulator.rawProperties, this.props.simulator.properties)} disabled={true} />
|
||||
</FormGroup>
|
||||
</form>
|
||||
</Dialog>
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue