mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-16 00:00:03 +01:00
#309, allow duplication of locked scenario
This commit is contained in:
parent
d07b5c68c8
commit
c64d7d8917
2 changed files with 3 additions and 2 deletions
src/common
|
@ -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}
|
||||
|
|
|
@ -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'}
|
||||
|
|
Loading…
Add table
Reference in a new issue