fixed styling issues
This commit is contained in:
parent
a70c4d1bf2
commit
a6c53d06d2
2 changed files with 3 additions and 4 deletions
|
|
@ -50,5 +50,4 @@ class FolderWatcher {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
module.exports = FolderWatcher
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ class PreferencesPage extends React.Component {
|
|||
className='control'
|
||||
checked={this.props.state.unsaved.prefs.autoAddTorrents}
|
||||
label={'Enable'}
|
||||
onCheck={(e, value) => {this.handleAutoAddTorrentsChange(e, value)}}
|
||||
onCheck={(e, value) => { this.handleAutoAddTorrentsChange(e, value) }}
|
||||
/>
|
||||
</Preference>
|
||||
)
|
||||
|
|
@ -124,7 +124,7 @@ class PreferencesPage extends React.Component {
|
|||
handleAutoAddTorrentsChange (e, isChecked) {
|
||||
const torrentsFolderPath = this.props.state.unsaved.prefs.torrentsFolderPath
|
||||
if (isChecked && !torrentsFolderPath) {
|
||||
alert('Select a torrents folder first.')
|
||||
alert('Select a torrents folder first.') // eslint-disable-line
|
||||
e.preventDefault()
|
||||
return
|
||||
}
|
||||
|
|
@ -136,7 +136,7 @@ class PreferencesPage extends React.Component {
|
|||
const torrentsFolderPath = this.props.state.unsaved.prefs.torrentsFolderPath
|
||||
|
||||
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 (
|
||||
<Preference>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue