mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
disable signal autoconf button for locked scenarios #309
This commit is contained in:
parent
22cce5d99e
commit
c1c8ea2ed8
3 changed files with 3 additions and 2 deletions
|
@ -204,7 +204,8 @@ class CustomTable extends Component {
|
|||
key={childkey++}
|
||||
ikey={childkey++}
|
||||
icon={'wave-square'}
|
||||
disabled={child.props.onAutoConf == null}
|
||||
disabled={child.props.onAutoConf == null || child.props.locked }
|
||||
hidetooltip={isLocked}
|
||||
tooltip={"Autoconfigure Signals"}
|
||||
tipPlacement={'bottom'}
|
||||
onClick={() => child.props.onAutoConf(index)}
|
||||
|
|
|
@ -375,6 +375,7 @@ class ConfigTable extends Component {
|
|||
signalButton
|
||||
onAutoConf={(index) => this.signalsAutoConf(index)}
|
||||
width={170}
|
||||
locked={this.props.locked}
|
||||
/>
|
||||
<TableColumn
|
||||
title='Infrastructure Component'
|
||||
|
|
|
@ -53,7 +53,6 @@ class Scenario extends React.Component {
|
|||
let scenarioID = parseInt(props.match.params.scenario, 10)
|
||||
|
||||
return{
|
||||
sessionToken: localStorage.getItem("token"),
|
||||
scenario: ScenarioStore.getState().find(s => s.id === scenarioID),
|
||||
results: ResultStore.getState().filter(result => result.scenarioID === scenarioID),
|
||||
sessionToken: localStorage.getItem("token"),
|
||||
|
|
Loading…
Add table
Reference in a new issue