fix(ui): feature flag alerting button

pull/14604/head
Christopher Henn 2019-08-09 14:46:15 -07:00
parent aafb9e5b5e
commit 02092e6960
1 changed files with 8 additions and 5 deletions

View File

@ -7,6 +7,7 @@ import {Button} from '@influxdata/clockface'
// Utils
import {getActiveTimeMachine} from 'src/timeMachine/selectors'
import {FeatureFlag} from 'src/shared/utils/featureFlag'
// Actions
import {setType as setViewType, addCheck} from 'src/timeMachine/actions'
@ -56,11 +57,13 @@ const AlertingButton: FunctionComponent<Props> = ({
}
return (
<Button
titleText="Add alerting to this query"
text="Alerting"
onClick={handleClickAlerting}
/>
<FeatureFlag name="alerting">
<Button
titleText="Add alerting to this query"
text="Alerting"
onClick={handleClickAlerting}
/>
</FeatureFlag>
)
}