diff --git a/ui/src/kapacitor/components/AlertOutputs.js b/ui/src/kapacitor/components/AlertOutputs.js index 1ab90576d1..9197fd41bc 100644 --- a/ui/src/kapacitor/components/AlertOutputs.js +++ b/ui/src/kapacitor/components/AlertOutputs.js @@ -2,13 +2,13 @@ import React, {PropTypes} from 'react'; import _ from 'lodash'; import {getKapacitorConfig, updateKapacitorConfigSection, testAlertOutput} from 'shared/apis'; import AlertaConfig from './AlertaConfig'; -import HipchatConfig from './HipchatConfig'; -import PagerdutyConfig from './PagerdutyConfig'; +import HipChatConfig from './HipChatConfig'; +import PagerDutyConfig from './PagerDutyConfig'; import SensuConfig from './SensuConfig'; import SlackConfig from './SlackConfig'; import SMTPConfig from './SMTPConfig'; import TelegramConfig from './TelegramConfig'; -import VictoropsConfig from './VictoropsConfig'; +import VictorOpsConfig from './VictorOpsConfig'; const AlertOutputs = React.createClass({ propTypes: { @@ -138,16 +138,16 @@ const AlertOutputs = React.createClass({ return ; } case 'victorops': { - return ; + return ; } case 'telegram': { return ; } case 'pagerduty': { - return ; + return ; } case 'hipchat': { - return ; + return ; } case 'sensu': { return ; diff --git a/ui/src/kapacitor/components/HipchatConfig.js b/ui/src/kapacitor/components/HipChatConfig.js similarity index 98% rename from ui/src/kapacitor/components/HipchatConfig.js rename to ui/src/kapacitor/components/HipChatConfig.js index 4fce7e23ce..0d48537f96 100644 --- a/ui/src/kapacitor/components/HipchatConfig.js +++ b/ui/src/kapacitor/components/HipChatConfig.js @@ -35,7 +35,7 @@ const HipchatConfig = React.createClass({ return (
-

VictorOps Alert

+

HipChat Alert


diff --git a/ui/src/kapacitor/components/PagerdutyConfig.js b/ui/src/kapacitor/components/PagerDutyConfig.js similarity index 96% rename from ui/src/kapacitor/components/PagerdutyConfig.js rename to ui/src/kapacitor/components/PagerDutyConfig.js index 1ee39cbc5a..77a36c03f7 100644 --- a/ui/src/kapacitor/components/PagerdutyConfig.js +++ b/ui/src/kapacitor/components/PagerDutyConfig.js @@ -1,6 +1,6 @@ import React, {PropTypes} from 'react'; -const PagerdutyConfig = React.createClass({ +const PagerDutyConfig = React.createClass({ propTypes: { config: PropTypes.shape({ options: PropTypes.shape({ @@ -75,4 +75,4 @@ const PagerdutyConfig = React.createClass({ }, }); -export default PagerdutyConfig; +export default PagerDutyConfig; diff --git a/ui/src/kapacitor/components/SensuConfig.js b/ui/src/kapacitor/components/SensuConfig.js index e637d8d0fa..b5aa377650 100644 --- a/ui/src/kapacitor/components/SensuConfig.js +++ b/ui/src/kapacitor/components/SensuConfig.js @@ -27,7 +27,7 @@ const SensuConfig = React.createClass({ return (
-

Alerta Alert

+

Sensu Alert


diff --git a/ui/src/kapacitor/components/VictoropsConfig.js b/ui/src/kapacitor/components/VictorOpsConfig.js similarity index 82% rename from ui/src/kapacitor/components/VictoropsConfig.js rename to ui/src/kapacitor/components/VictorOpsConfig.js index 1cceb93d8f..8dff8272cb 100644 --- a/ui/src/kapacitor/components/VictoropsConfig.js +++ b/ui/src/kapacitor/components/VictorOpsConfig.js @@ -1,12 +1,11 @@ import React, {PropTypes} from 'react'; -const VictoropsConfig = React.createClass({ +const VictorOpsConfig = React.createClass({ propTypes: { config: PropTypes.shape({ options: PropTypes.shape({ 'api-key': PropTypes.bool, 'routing-key': PropTypes.string, - global: PropTypes.bool, url: PropTypes.string, }).isRequired, }).isRequired, @@ -20,7 +19,6 @@ const VictoropsConfig = React.createClass({ 'api-key': this.apiKey.value, 'routing-key': this.routingKey.value, url: this.url.value, - global: this.global.checked, }; this.props.onSave(properties); @@ -30,7 +28,7 @@ const VictoropsConfig = React.createClass({ const {options} = this.props.config; const apiKey = options['api-key']; const routingKey = options['routing-key']; - const {url, global} = options; + const {url} = options; return (
@@ -58,11 +56,6 @@ const VictoropsConfig = React.createClass({ this.url = r} defaultValue={url || ''}>
- -
- this.global = r} defaultChecked={global}/> - -
@@ -78,4 +71,4 @@ const VictoropsConfig = React.createClass({ }, }); -export default VictoropsConfig; +export default VictorOpsConfig;