only toggle if authorized
This commit is contained in:
parent
f2a7cc1f19
commit
49102ea474
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ class Links extends Component {
|
|||
<div className="linkItem icon metacodeItem"
|
||||
style={{ zIndex: this.state.showMetacodeTitle ? 4 : 1 }}
|
||||
onMouseLeave={() => this.setState({ showMetacodeTitle: false, showMetacodeSelect: false })}
|
||||
onClick={this.handleMetacodeBarClick}
|
||||
onClick={() => authorizedToEdit && this.handleMetacodeBarClick()}
|
||||
>
|
||||
<div className={`metacodeTitle mbg${metacode.get('id')}`}
|
||||
style={{ display: this.state.showMetacodeTitle ? 'block' : 'none' }}
|
||||
|
|
Loading…
Reference in a new issue