Allow magnet links when adding torrents

This commit is contained in:
John Furrow
2017-02-05 11:50:00 -08:00
parent bba2352587
commit 277c4bab18
3 changed files with 9 additions and 9 deletions
@@ -17,7 +17,7 @@ const messages = defineMessages({
},
mustSpecifyURLs: {
id: 'torrents.add.tab.urls.empty',
defaultMessage: 'You must specify at least one URL.'
defaultMessage: 'You must specify at least one torrent.'
}
});
@@ -53,7 +53,7 @@ class AddTorrentsByURL extends React.Component {
error: props.intl.formatMessage(messages.mustSpecifyDestination)
},
urls: {
isValid: Validator.isURLValid,
isValid: value => value !== '' && value != null,
error: props.intl.formatMessage(messages.mustSpecifyURLs)
}
};
@@ -148,7 +148,7 @@ class AddTorrentsByURL extends React.Component {
</FormLabel>
<TextboxRepeater placeholder={this.props.intl.formatMessage({
id: 'torrents.add.tab.url.input.placeholder',
defaultMessage: 'Torrent URL'
defaultMessage: 'Torrent URL or Magnet Link'
})}
handleTextboxAdd={this.handleUrlAdd}
handleTextboxChange={this.handleUrlChange}
+1 -1
View File
@@ -204,7 +204,7 @@ export default {
'torrents.add.tab.file.browse': 'or click to browse',
'torrents.add.tab.file.drop': 'Drop some files here,',
'torrents.add.tab.file.title': 'By File',
'torrents.add.tab.url.input.placeholder': 'Torrent URL',
'torrents.add.tab.url.input.placeholder': 'Torrent URL or Magnet Link',
'torrents.add.tab.url.title': 'By URL',
'torrents.add.torrents.label': 'Torrents',