parent
e2b4ab4d61
commit
bf0d672d0b
|
@ -168,11 +168,8 @@ class KapacitorRule extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
renderHeaderOptions = () => {
|
renderHeaderOptions = () => {
|
||||||
const {source} = this.props
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<RuleHeaderSave
|
<RuleHeaderSave
|
||||||
source={source}
|
|
||||||
onSave={this.handleSave}
|
onSave={this.handleSave}
|
||||||
validationError={this.validationError()}
|
validationError={this.validationError()}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
import React from 'react'
|
import React, {Fragment} from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import ReactTooltip from 'react-tooltip'
|
import ReactTooltip from 'react-tooltip'
|
||||||
import SourceIndicator from 'shared/components/SourceIndicator'
|
|
||||||
|
|
||||||
const RuleHeaderSave = ({onSave, validationError}) => (
|
const RuleHeaderSave = ({onSave, validationError}) => (
|
||||||
<div className="page-header--right">
|
<Fragment>
|
||||||
<SourceIndicator />
|
|
||||||
{validationError ? (
|
{validationError ? (
|
||||||
<button
|
<button
|
||||||
className="btn btn-success btn-sm disabled"
|
className="btn btn-success btn-sm disabled"
|
||||||
|
@ -26,7 +24,7 @@ const RuleHeaderSave = ({onSave, validationError}) => (
|
||||||
place="bottom"
|
place="bottom"
|
||||||
class="influx-tooltip kapacitor-tooltip"
|
class="influx-tooltip kapacitor-tooltip"
|
||||||
/>
|
/>
|
||||||
</div>
|
</Fragment>
|
||||||
)
|
)
|
||||||
|
|
||||||
const {func, string} = PropTypes
|
const {func, string} = PropTypes
|
||||||
|
|
Loading…
Reference in New Issue