Render Configure Kapacitor on empty Alerts Table only if at least Editor
parent
8861228f8d
commit
4b748528e1
|
@ -1,6 +1,8 @@
|
||||||
import React, {PropTypes} from 'react'
|
import React, {PropTypes} from 'react'
|
||||||
import {Link} from 'react-router'
|
import {Link} from 'react-router'
|
||||||
|
|
||||||
|
import Authorized, {EDITOR_ROLE} from 'src/auth/Authorized'
|
||||||
|
|
||||||
const NoKapacitorError = React.createClass({
|
const NoKapacitorError = React.createClass({
|
||||||
propTypes: {
|
propTypes: {
|
||||||
source: PropTypes.shape({
|
source: PropTypes.shape({
|
||||||
|
@ -16,9 +18,11 @@ const NoKapacitorError = React.createClass({
|
||||||
The current source does not have an associated Kapacitor instance
|
The current source does not have an associated Kapacitor instance
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
|
<Authorized requiredRole={EDITOR_ROLE}>
|
||||||
<Link to={path} className="btn btn-sm btn-primary">
|
<Link to={path} className="btn btn-sm btn-primary">
|
||||||
Configure Kapacitor
|
Configure Kapacitor
|
||||||
</Link>
|
</Link>
|
||||||
|
</Authorized>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue