mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
Add start action parameters on simulation models
This commit is contained in:
parent
a124a8d91e
commit
6b52c18844
2 changed files with 4 additions and 1 deletions
|
@ -21,7 +21,6 @@
|
|||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { ControlLabel, Col } from 'react-bootstrap';
|
||||
import JsonView from 'react-json-view';
|
||||
|
||||
class ParametersEditor extends React.Component {
|
||||
|
|
|
@ -221,6 +221,10 @@ class Simulation extends React.Component {
|
|||
continue;
|
||||
}
|
||||
|
||||
if (action.data.action === 'start') {
|
||||
action.data.parameters = this.state.simulationModels[index].startParameters;
|
||||
}
|
||||
|
||||
AppDispatcher.dispatch({
|
||||
type: 'simulators/start-action',
|
||||
simulator,
|
||||
|
|
Loading…
Add table
Reference in a new issue