Fix kapacitor rules page checkbox JSX.
parent
07a28ef9a3
commit
2b6206a018
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue