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

changed button for signal autoconf, see #250

This commit is contained in:
irismarie 2021-04-13 15:22:19 +02:00
parent c20f783689
commit 662e3949ad
3 changed files with 22 additions and 4 deletions

View file

@ -27,6 +27,7 @@ class TableColumn extends Component {
deleteButton: false,
showDeleteButton: null,
exportButton: false,
signalButton: false,
duplicateButton: false,
isLocked: null,
locked: false,

View file

@ -183,6 +183,23 @@ class CustomTable extends Component {
);
}
if (child.props.signalButton) {
cell.push(
<OverlayTrigger
key={1}
placement={'bottom'}
overlay={<Tooltip id={`tooltip-${"signal"}`}> Autoconfigure Signals </Tooltip>}
>
<Button
variant='table-control-button'
onClick={() => child.props.onAutoConf(index)}
disabled={child.props.onAutoConf == null}>
<Icon icon='wave-square' />
</Button>
</OverlayTrigger>
);
}
if (child.props.duplicateButton) {
cell.push(
<OverlayTrigger

View file

@ -356,10 +356,10 @@ class ConfigTable extends Component {
locked={this.props.locked}
/>
<TableColumn
title='Import Signals'
exportButton
onExport={(index) => this.signalsAutoConf(index)}
width={150}
title='Autoconfigure Signals'
signalButton
onAutoConf={(index) => this.signalsAutoConf(index)}
width={170}
/>
<TableColumn
title='Infrastructure Component'