Preference page cleaning
This commit is contained in:
@@ -189,22 +189,20 @@ class PreferencesPage extends React.Component {
|
|||||||
dispatch('updatePreferences', 'startup', isChecked)
|
dispatch('updatePreferences', 'startup', isChecked)
|
||||||
}
|
}
|
||||||
|
|
||||||
setStartupSection () {
|
setStartupCheckbox () {
|
||||||
if (config.IS_PORTABLE) {
|
if (config.IS_PORTABLE) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PreferencesSection title='Startup'>
|
<Preference>
|
||||||
<Preference>
|
<Checkbox
|
||||||
<Checkbox
|
className='control'
|
||||||
className='control'
|
checked={this.props.state.saved.prefs.startup}
|
||||||
checked={this.props.state.saved.prefs.startup}
|
label={'Open WebTorrent on startup'}
|
||||||
label={'Open WebTorrent on startup.'}
|
onCheck={this.handleStartupChange}
|
||||||
onCheck={this.handleStartupChange}
|
/>
|
||||||
/>
|
</Preference>
|
||||||
</Preference>
|
|
||||||
</PreferencesSection>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -214,7 +212,7 @@ class PreferencesPage extends React.Component {
|
|||||||
<Checkbox
|
<Checkbox
|
||||||
className='control'
|
className='control'
|
||||||
checked={this.props.state.saved.prefs.soundNotifications}
|
checked={this.props.state.saved.prefs.soundNotifications}
|
||||||
label={'Activate the notification sounds'}
|
label={'Enable sounds'}
|
||||||
onCheck={this.handlesoundNotificationsChange} />
|
onCheck={this.handlesoundNotificationsChange} />
|
||||||
</Preference>
|
</Preference>
|
||||||
)
|
)
|
||||||
@@ -249,8 +247,8 @@ class PreferencesPage extends React.Component {
|
|||||||
<PreferencesSection title='Default torrent app'>
|
<PreferencesSection title='Default torrent app'>
|
||||||
{this.setDefaultAppButton()}
|
{this.setDefaultAppButton()}
|
||||||
</PreferencesSection>
|
</PreferencesSection>
|
||||||
{this.setStartupSection()}
|
<PreferencesSection title='General'>
|
||||||
<PreferencesSection title='Miscellaneous'>
|
{this.setStartupCheckbox()}
|
||||||
{this.soundNotificationsCheckbox()}
|
{this.soundNotificationsCheckbox()}
|
||||||
</PreferencesSection>
|
</PreferencesSection>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user