Merge pull request #453 from influxdata/rename-things

Renamed a couple of alert headings
pull/10616/head
Will Piers 2016-11-10 14:14:59 -08:00 committed by GitHub
commit f947fa2637
5 changed files with 13 additions and 20 deletions

View File

@ -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 <SlackConfig onSave={save} onTest={test} config={this.getSection(configSections, endpoint)} />;
}
case 'victorops': {
return <VictoropsConfig onSave={save} config={this.getSection(configSections, endpoint)} />;
return <VictorOpsConfig onSave={save} config={this.getSection(configSections, endpoint)} />;
}
case 'telegram': {
return <TelegramConfig onSave={save} config={this.getSection(configSections, endpoint)} />;
}
case 'pagerduty': {
return <PagerdutyConfig onSave={save} config={this.getSection(configSections, endpoint)} />;
return <PagerDutyConfig onSave={save} config={this.getSection(configSections, endpoint)} />;
}
case 'hipchat': {
return <HipchatConfig onSave={save} config={this.getSection(configSections, endpoint)} />;
return <HipChatConfig onSave={save} config={this.getSection(configSections, endpoint)} />;
}
case 'sensu': {
return <SensuConfig onSave={save} config={this.getSection(configSections, endpoint)} />;

View File

@ -35,7 +35,7 @@ const HipchatConfig = React.createClass({
return (
<div className="panel-body">
<h4 className="text-center">VictorOps Alert</h4>
<h4 className="text-center">HipChat Alert</h4>
<br/>
<form onSubmit={this.handleSaveAlert}>
<div className="row">

View File

@ -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;

View File

@ -27,7 +27,7 @@ const SensuConfig = React.createClass({
return (
<div className="panel-body">
<h4 className="text-center">Alerta Alert</h4>
<h4 className="text-center">Sensu Alert</h4>
<br/>
<form onSubmit={this.handleSaveAlert}>
<div className="row">

View File

@ -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 (
<div className="panel-body">
@ -58,11 +56,6 @@ const VictoropsConfig = React.createClass({
<label htmlFor="url">VictorOps URL</label>
<input className="form-control" id="url" type="text" ref={(r) => this.url = r} defaultValue={url || ''}></input>
</div>
<div className="form-group u-flex">
<input className="u-flex" id="global" type="checkbox" ref={(r) => this.global = r} defaultChecked={global}/>
<label htmlFor="global">This should be showing up next to the shit</label>
</div>
</div>
</div>
@ -78,4 +71,4 @@ const VictoropsConfig = React.createClass({
},
});
export default VictoropsConfig;
export default VictorOpsConfig;