diff --git a/ui/src/kapacitor/components/TelegramConfig.js b/ui/src/kapacitor/components/TelegramConfig.js index ce3dcddaf0..bac11f2298 100644 --- a/ui/src/kapacitor/components/TelegramConfig.js +++ b/ui/src/kapacitor/components/TelegramConfig.js @@ -18,11 +18,15 @@ const TelegramConfig = React.createClass({ handleSaveAlert(e) { e.preventDefault(); + let parseMode + if (this.parseModeHTML.checked) parseMode = 'HTML' + if (this.parseModeMarkdown.checked) parseMode = 'Markdown' + const properties = { 'chat-id': this.chatID.value, 'disable-notification': this.disableNotification.checked, 'disable-web-page-preview': this.disableWebPagePreview.checked, - 'parse-mode': this.parseMode.checked.toString(), + 'parse-mode': parseMode, token: this.token.value, url: this.url.value, }; @@ -62,8 +66,19 @@ const TelegramConfig = React.createClass({