Skip to content

Commit

Permalink
fix #1140 enabled checkbox in usermanager
Browse files Browse the repository at this point in the history
  • Loading branch information
saidaipparla committed Oct 14, 2016
1 parent 61f5eb4 commit 342adac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/client/components/manager/users/UserDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ const UserDialog = React.createClass({
<option value="USER">USER</option>
</select>
<Input
checked={this.props.user && this.props.user.enabled}
checked={this.props.user && (this.props.user.enabled === undefined ? false : this.props.user.enabled)}
type="checkbox"
key="enabled"
key={"enabled" + (this.props.user ? this.props.user.enabled : "missing")}
name="enabled"
label={<Message msgId="users.enabled"/>}
onChange={(evt) => {this.props.onChange("enabled", evt.target.checked ? true : false); }} />
onClick={(evt) => {this.props.onChange("enabled", evt.target.checked ? true : false); }} />
</div>);
},
renderAttributes() {
Expand Down

0 comments on commit 342adac

Please sign in to comment.