fixed styling issues
This commit is contained in:
@@ -50,5 +50,4 @@ class FolderWatcher {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
module.exports = FolderWatcher
|
module.exports = FolderWatcher
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ class PreferencesPage extends React.Component {
|
|||||||
className='control'
|
className='control'
|
||||||
checked={this.props.state.unsaved.prefs.autoAddTorrents}
|
checked={this.props.state.unsaved.prefs.autoAddTorrents}
|
||||||
label={'Enable'}
|
label={'Enable'}
|
||||||
onCheck={(e, value) => {this.handleAutoAddTorrentsChange(e, value)}}
|
onCheck={(e, value) => { this.handleAutoAddTorrentsChange(e, value) }}
|
||||||
/>
|
/>
|
||||||
</Preference>
|
</Preference>
|
||||||
)
|
)
|
||||||
@@ -124,7 +124,7 @@ class PreferencesPage extends React.Component {
|
|||||||
handleAutoAddTorrentsChange (e, isChecked) {
|
handleAutoAddTorrentsChange (e, isChecked) {
|
||||||
const torrentsFolderPath = this.props.state.unsaved.prefs.torrentsFolderPath
|
const torrentsFolderPath = this.props.state.unsaved.prefs.torrentsFolderPath
|
||||||
if (isChecked && !torrentsFolderPath) {
|
if (isChecked && !torrentsFolderPath) {
|
||||||
alert('Select a torrents folder first.')
|
alert('Select a torrents folder first.') // eslint-disable-line
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -136,7 +136,7 @@ class PreferencesPage extends React.Component {
|
|||||||
const torrentsFolderPath = this.props.state.unsaved.prefs.torrentsFolderPath
|
const torrentsFolderPath = this.props.state.unsaved.prefs.torrentsFolderPath
|
||||||
|
|
||||||
const value = torrentsFolderPath || 'Path to be watched.'
|
const value = torrentsFolderPath || 'Path to be watched.'
|
||||||
const description = 'Torrent files saved to this folder will be automatically added to the list.'
|
const description = 'Torrent files saved to this folder will be automatically added.'
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Preference>
|
<Preference>
|
||||||
|
|||||||
Reference in New Issue
Block a user