diff --git a/ui/src/kapacitor/components/AlertOutputs.js b/ui/src/kapacitor/components/AlertOutputs.js
index e5b9a6acab..00dc83eea1 100644
--- a/ui/src/kapacitor/components/AlertOutputs.js
+++ b/ui/src/kapacitor/components/AlertOutputs.js
@@ -4,6 +4,7 @@ import {getKapacitorConfig, updateKapacitorConfigSection, testAlertOutput} from
import AlertaConfig from './AlertaConfig';
import SlackConfig from './SlackConfig';
import SMTPConfig from './SMTPConfig';
+import TelegramConfig from './TelegramConfig';
import VictoropsConfig from './VictoropsConfig';
const AlertOutputs = React.createClass({
@@ -39,12 +40,16 @@ const AlertOutputs = React.createClass({
alertaConfig: this.getSection(sections, 'alerta'),
slackConfig: this.getSection(sections, 'slack'),
smtpConfig: this.getSection(sections, 'smtp'),
- telegram: this.getSection(sections, 'telegram'),
+ telegramConfig: this.getSection(sections, 'telegram'),
victoropsConfig: this.getSection(sections, 'victorops'),
});
});
},
+ getSection(sections, section) {
+ return _.get(sections, [section, 'elements', '0'], null);
+ },
+
handleSaveConfig(section, properties) {
if (section !== '') {
updateKapacitorConfigSection(this.props.kapacitor, section, Object.assign({}, properties, {enabled: true})).then(() => {
@@ -90,6 +95,7 @@ const AlertOutputs = React.createClass({
+
@@ -100,10 +106,6 @@ const AlertOutputs = React.createClass({
);
},
- getSection(sections, section) {
- return _.get(sections, [section, 'elements', '0'], null);
- },
-
renderAlertConfig(endpoint) {
const save = (properties) => {
this.handleSaveConfig(endpoint, properties);
@@ -125,6 +127,10 @@ const AlertOutputs = React.createClass({
return