From 970ce7330c26691ef8687fe102758d88661b4260 Mon Sep 17 00:00:00 2001 From: Brandon Farmer Date: Mon, 14 May 2018 15:00:54 -0700 Subject: [PATCH] Fixes users disabling rules from tickscript table --- ui/src/kapacitor/components/TasksTable.tsx | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/ui/src/kapacitor/components/TasksTable.tsx b/ui/src/kapacitor/components/TasksTable.tsx index d631ec4d14..faf7056589 100644 --- a/ui/src/kapacitor/components/TasksTable.tsx +++ b/ui/src/kapacitor/components/TasksTable.tsx @@ -56,18 +56,6 @@ const TasksTable: SFC = ({ ) export class TaskRow extends PureComponent { - public handleClickRuleStatusEnabled(task: AlertRule) { - return () => { - this.props.onChangeRuleStatus(task) - } - } - - public handleDelete(task: AlertRule) { - return () => { - this.props.onDelete(task) - } - } - public render() { const {task, source} = this.props @@ -91,9 +79,9 @@ export class TaskRow extends PureComponent { className="form-control-static" type="checkbox" checked={task.status === 'enabled'} - onChange={this.handleClickRuleStatusEnabled(task)} + onChange={this.handleClickRuleStatusEnabled} /> -