Render Add Graph button in empty cell based on user authorization
parent
5b076aea88
commit
bb3777cc2a
|
@ -76,12 +76,14 @@ class LayoutCell extends Component {
|
||||||
{queries.length
|
{queries.length
|
||||||
? children
|
? children
|
||||||
: <div className="graph-empty">
|
: <div className="graph-empty">
|
||||||
<button
|
<Authorized requiredRole={EDITOR_ROLE}>
|
||||||
className="no-query--button btn btn-md btn-primary"
|
<button
|
||||||
onClick={this.handleSummonOverlay(cell)}
|
className="no-query--button btn btn-md btn-primary"
|
||||||
>
|
onClick={this.handleSummonOverlay(cell)}
|
||||||
<span className="icon plus" /> Add Graph
|
>
|
||||||
</button>
|
<span className="icon plus" /> Add Graph
|
||||||
|
</button>
|
||||||
|
</Authorized>
|
||||||
</div>}
|
</div>}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue