From 45e8a5f1c88981b4c268124d243f4a2b969b8d22 Mon Sep 17 00:00:00 2001 From: Jared Scheib Date: Tue, 4 Apr 2017 12:28:01 -0700 Subject: [PATCH] Fix saving email in Kapacitor alerts (#1173) * Fix Kapacitor Rules bug to now save user input data on an Alert Message * Update changelog --- CHANGELOG.md | 1 + ui/src/kapacitor/components/RuleMessageAlertConfig.js | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a51db2a12..c0c12eca8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ 1. [#1123](https://github.com/influxdata/chronograf/issues/1123): Widen single column results in data explorer 1. [#1164](https://github.com/influxdata/chronograf/pull/1164): Restore ability to save raw queries to a Dashboard Cell 1. [#1115](https://github.com/influxdata/chronograf/pull/1115): Fix Basepath issue where content would fail to render under certain circumstances + 1. [#1173](https://github.com/influxdata/chronograf/pull/1173): Fix saving email in Kapacitor alerts ### Features 1. [#1112](https://github.com/influxdata/chronograf/pull/1112): Add ability to delete a dashboard diff --git a/ui/src/kapacitor/components/RuleMessageAlertConfig.js b/ui/src/kapacitor/components/RuleMessageAlertConfig.js index eb95b297d..0bdbb0134 100644 --- a/ui/src/kapacitor/components/RuleMessageAlertConfig.js +++ b/ui/src/kapacitor/components/RuleMessageAlertConfig.js @@ -25,8 +25,7 @@ const RuleMessageAlertConfig = ({ className="form-control size-486" type="text" placeholder={DEFAULT_ALERT_PLACEHOLDERS[alert]} - name="alertProperty" - onChange={(evt) => updateAlertNodes(rule.id, alert, evt.target.form.alertProperty.value)} + onChange={(e) => updateAlertNodes(rule.id, alert, e.target.value)} value={ALERT_NODES_ACCESSORS[alert](rule)} />