mirror of
https://github.com/zoriya/flood.git
synced 2026-06-01 18:47:44 +00:00
Allow magnet links when adding torrents
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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',
|
||||
|
||||
|
||||
Reference in New Issue
Block a user