Select 'Once' option by default
Also fixes a small typo in an unrelated part of the code. GH-514
This commit is contained in:
parent
5cf940b314
commit
f970fda2e3
|
@ -458,7 +458,10 @@ const SettingsPage = createReactClass({
|
||||||
name='bounceIconType'
|
name='bounceIconType'
|
||||||
value='informational'
|
value='informational'
|
||||||
disabled={!this.state.notifications.bounceIcon}
|
disabled={!this.state.notifications.bounceIcon}
|
||||||
defaultChecked={this.state.notifications.bounceIconType === 'informational'}
|
defaultChecked={
|
||||||
|
!this.state.notifications.bounceIconType ||
|
||||||
|
this.state.notifications.bounceIconType === 'informational'
|
||||||
|
}
|
||||||
onChange={this.handleBounceIconType}
|
onChange={this.handleBounceIconType}
|
||||||
>{'once'}</Radio>
|
>{'once'}</Radio>
|
||||||
{' '}
|
{' '}
|
||||||
|
|
|
@ -14,7 +14,7 @@ const upgradePreferences = require('./config/upgradePreferences');
|
||||||
function loadDefault(spellCheckerLocale) {
|
function loadDefault(spellCheckerLocale) {
|
||||||
const config = JSON.parse(JSON.stringify(defaultPreferences));
|
const config = JSON.parse(JSON.stringify(defaultPreferences));
|
||||||
return Object.assign({}, config, {
|
return Object.assign({}, config, {
|
||||||
spellCheckerLocale: spellCheckerLocale || defaultPreferences.pellCheckerLocale || 'en-US'
|
spellCheckerLocale: spellCheckerLocale || defaultPreferences.spellCheckerLocale || 'en-US'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue