Make KapacitorRulesTable 'id' & 'for' html props unique
parent
4ed4be638d
commit
dcc05ee382
|
@ -65,13 +65,13 @@ const RuleRow = ({rule, source, onDelete, onChangeRuleStatus}) =>
|
||||||
<td style={{width: colEnabled}} className="text-center">
|
<td style={{width: colEnabled}} className="text-center">
|
||||||
<div className="dark-checkbox">
|
<div className="dark-checkbox">
|
||||||
<input
|
<input
|
||||||
id={`kapacitor-enabled ${rule.id}`}
|
id={`kapacitor-rule-row-task-enabled ${rule.id}`}
|
||||||
className="form-control-static"
|
className="form-control-static"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
defaultChecked={rule.status === 'enabled'}
|
defaultChecked={rule.status === 'enabled'}
|
||||||
onClick={onChangeRuleStatus(rule)}
|
onClick={onChangeRuleStatus(rule)}
|
||||||
/>
|
/>
|
||||||
<label htmlFor={`kapacitor-enabled ${rule.id}`} />
|
<label htmlFor={`kapacitor-rule-row-task-enabled ${rule.id}`} />
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td style={{width: colActions}} className="text-right">
|
<td style={{width: colActions}} className="text-right">
|
||||||
|
|
Loading…
Reference in New Issue