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

#309, allow duplication of locked scenario

This commit is contained in:
irismarie 2021-04-20 12:58:58 +02:00
parent d07b5c68c8
commit c64d7d8917
2 changed files with 3 additions and 2 deletions

View file

@ -33,7 +33,7 @@ class IconToggleButton extends React.Component {
overlay={<Tooltip id={`tooltip-${this.props.ikey}`}>{tooltip}</Tooltip>} >
<ButtonGroup toggle>
<ToggleButton
variant='light'
variant={this.props.variant ? this.props.variant : 'light'}
type='checkbox'
onChange={this.props.onChange}
style={this.props.buttonStyle}

View file

@ -179,6 +179,7 @@ class CustomTable extends Component {
tooltipChecked='Scenario is locked, cannot be edited'
tooltipUnchecked='Scenario is unlocked, can be edited'
disabled={false}
variant={'table-control-button'}
/>
);
}
@ -217,7 +218,7 @@ class CustomTable extends Component {
key={childkey++}
ikey={childkey++}
icon={'copy'}
disabled={child.props.onDuplicate == null || isLocked}
disabled={child.props.onDuplicate == null || child.props.locked}
hidetooltip={isLocked}
tooltip={"Duplicate"}
tipPlacement={'bottom'}