diff --git a/ui/src/kapacitor/components/RuleMessageTemplates.js b/ui/src/kapacitor/components/RuleMessageTemplates.js index 9b7883555..eb2ccbeba 100644 --- a/ui/src/kapacitor/components/RuleMessageTemplates.js +++ b/ui/src/kapacitor/components/RuleMessageTemplates.js @@ -12,9 +12,12 @@ class RuleMessageTemplates extends Component { super(props) } - render() { - const {rule, updateMessage} = this.props + handleClickTemplate = template => () => { + const {updateMessage, rule} = this.props + updateMessage(rule.id, `${rule.message} ${template.label}`) + } + render() { return (
Templates:
@@ -23,8 +26,7 @@ class RuleMessageTemplates extends Component {