Revert "Render Write Data button based on user authorization"
This reverts commit 4fee049820
.
pull/2174/head
parent
71645a6b11
commit
eeb5ad5817
|
@ -1,8 +1,6 @@
|
||||||
import React, {PropTypes} from 'react'
|
import React, {PropTypes} from 'react'
|
||||||
import {withRouter} from 'react-router'
|
import {withRouter} from 'react-router'
|
||||||
|
|
||||||
import Authorized, {EDITOR_ROLE} from 'src/auth/Authorized'
|
|
||||||
|
|
||||||
import AutoRefreshDropdown from 'shared/components/AutoRefreshDropdown'
|
import AutoRefreshDropdown from 'shared/components/AutoRefreshDropdown'
|
||||||
import TimeRangeDropdown from 'shared/components/TimeRangeDropdown'
|
import TimeRangeDropdown from 'shared/components/TimeRangeDropdown'
|
||||||
import SourceIndicator from 'shared/components/SourceIndicator'
|
import SourceIndicator from 'shared/components/SourceIndicator'
|
||||||
|
@ -26,16 +24,14 @@ const Header = ({
|
||||||
<div className="page-header__right">
|
<div className="page-header__right">
|
||||||
<GraphTips />
|
<GraphTips />
|
||||||
<SourceIndicator />
|
<SourceIndicator />
|
||||||
<Authorized requiredRole={EDITOR_ROLE}>
|
<div
|
||||||
<div
|
className="btn btn-sm btn-default"
|
||||||
className="btn btn-sm btn-default"
|
onClick={showWriteForm}
|
||||||
onClick={showWriteForm}
|
data-test="write-data-button"
|
||||||
data-test="write-data-button"
|
>
|
||||||
>
|
<span className="icon pencil" />
|
||||||
<span className="icon pencil" />
|
Write Data
|
||||||
Write Data
|
</div>
|
||||||
</div>
|
|
||||||
</Authorized>
|
|
||||||
<AutoRefreshDropdown
|
<AutoRefreshDropdown
|
||||||
iconName="refresh"
|
iconName="refresh"
|
||||||
selected={autoRefresh}
|
selected={autoRefresh}
|
||||||
|
|
Loading…
Reference in New Issue