Skip to content

Commit

Permalink
Add IDs to the system console boolean
Browse files Browse the repository at this point in the history
Currently under testing
  • Loading branch information
doh5 committed Apr 17, 2017
1 parent 742bab6 commit 839f8b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webapp/components/admin_console/boolean_setting.jsx
Expand Up @@ -7,6 +7,8 @@ import Setting from './setting.jsx';

import {FormattedMessage} from 'react-intl';

import * as Utils from 'utils/utils.jsx';

export default class BooleanSetting extends React.Component {
constructor(props) {
super(props);
Expand Down Expand Up @@ -42,6 +44,7 @@ export default class BooleanSetting extends React.Component {
<input
type='radio'
value='true'
id={Utils.createSafeId(this.props.id) + 'true'}
name={this.props.id}
checked={this.props.value}
onChange={this.handleChange}
Expand All @@ -53,6 +56,7 @@ export default class BooleanSetting extends React.Component {
<input
type='radio'
value='false'
id={Utils.createSafeId(this.props.id) + 'false'}
name={this.props.id}
checked={!this.props.value}
onChange={this.handleChange}
Expand Down

0 comments on commit 839f8b8

Please sign in to comment.