Fix kapacitor rules page checkbox JSX.

pull/10616/head
Hunter Trujillo 2017-02-10 16:09:12 -07:00
parent 07a28ef9a3
commit 2b6206a018
1 changed files with 8 additions and 1 deletions

View File

@ -148,7 +148,14 @@ export const KapacitorRulesPage = React.createClass({
<td className="monotype">{rule.alerts.join(', ')}</td>
<td className="monotype text-center">
<div className="dark-checkbox">
<input id="kapacitor-enabled" className="form-control-static" type="checkbox" ref={(r) => this.enabled = r} checked={rule.status === "enabled"} onClick={(e) => this.handleRuleStatus(e, rule)} />
<input
id="kapacitor-enabled"
className="form-control-static"
type="checkbox"
ref={(r) => this.enabled = r}
defaultChecked={rule.status === "enabled"}
onClick={(e) => this.handleRuleStatus(e, rule)}
/>
<label htmlFor="kapacitor-enabled"></label>
</div>
</td>