Add move torrents option to context menu

This commit is contained in:
John Furrow
2016-02-28 19:24:59 -08:00
parent 7e3403238e
commit 635b30afeb
27 changed files with 574 additions and 74 deletions

View File

@@ -23,7 +23,11 @@ export default class AddTorrents extends React.Component {
}
componentWillMount() {
this.setState({destination: UIStore.getLatestTorrentLocation()});
let destination = UIStore.getLatestTorrentLocation();
if (this.props.suggested) {
destination = this.props.suggested;
}
this.setState({destination});
}
componentDidMount() {
@@ -46,6 +50,10 @@ export default class AddTorrents extends React.Component {
}
onLatestTorrentLocationChange() {
if (this.props.suggested) {
return;
}
let destination = UIStore.getLatestTorrentLocation();
if (this.props.onChange) {