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

hide tooltips for locked buttons

This commit is contained in:
irismarie 2021-04-16 17:42:58 +02:00
parent 608acb4577
commit 1a118de0a5
3 changed files with 5 additions and 2 deletions

View file

@ -309,6 +309,7 @@ class ConfigTable extends Component {
onClick={() => this.addConfig()}
icon='plus'
disabled={this.props.locked}
hidetooltip={this.props.locked}
/>
<IconButton
ikey={1}
@ -316,6 +317,7 @@ class ConfigTable extends Component {
onClick={() => this.setState({ importConfigModal: true })}
icon='upload'
disabled={this.props.locked}
hidetooltip={this.props.locked}
/>
</span>
</h2>

View file

@ -149,6 +149,7 @@ class DashboardTable extends Component {
onClick={() => this.setState({newDashboardModal: true})}
icon='plus'
disabled={this.props.locked}
hidetooltip={this.props.locked}
/>
<IconButton
ikey={1}
@ -156,6 +157,7 @@ class DashboardTable extends Component {
onClick={() => this.setState({importDashboardModal: true})}
icon='upload'
disabled={this.props.locked}
hidetooltip={this.props.locked}
/>
</span>
</h2>

View file

@ -159,15 +159,14 @@ class ResultTable extends Component {
<div>
{/*Result table*/}
<h2 style={this.props.tableHeadingStyle}>Results
<span className='icon-button'>
<IconButton
ikey={1}
tooltip='Add Result'
onClick={() => this.setState({ newResultModal: true })}
icon='plus'
disabled={this.props.locked}
hidetooltip={this.props.locked}
/>
</span>
</h2>
<Table data={this.props.results}>