Render Create Dashboard button on empty Dashboards Table only if at least Editor
parent
4b748528e1
commit
1dd66754ba
|
@ -56,13 +56,15 @@ const DashboardsTable = ({
|
||||||
<h4 style={{marginTop: '90px'}}>
|
<h4 style={{marginTop: '90px'}}>
|
||||||
Looks like you don’t have any dashboards
|
Looks like you don’t have any dashboards
|
||||||
</h4>
|
</h4>
|
||||||
<button
|
<Authorized requiredRole={EDITOR_ROLE}>
|
||||||
className="btn btn-sm btn-primary"
|
<button
|
||||||
onClick={onCreateDashboard}
|
className="btn btn-sm btn-primary"
|
||||||
style={{marginBottom: '90px'}}
|
onClick={onCreateDashboard}
|
||||||
>
|
style={{marginBottom: '90px'}}
|
||||||
<span className="icon plus" /> Create Dashboard
|
>
|
||||||
</button>
|
<span className="icon plus" /> Create Dashboard
|
||||||
|
</button>
|
||||||
|
</Authorized>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue