diff --git a/client/source/scripts/containers/ActionBar.js b/client/source/scripts/containers/ActionBar.js index 4cfd55c9..9ff9248f 100644 --- a/client/source/scripts/containers/ActionBar.js +++ b/client/source/scripts/containers/ActionBar.js @@ -2,12 +2,12 @@ import React from 'react'; import Action from '../components/action-bar/Action'; import { addTorrent, startTorrent, stopTorrent } from '../actions/ClientActions'; -import AddTorrent from '../components/action-bar/AddTorrent'; +import { displayModal } from '../actions/UIActions'; import { setTorrentsSort } from '../actions/UIActions'; import SortDropdown from '../components/action-bar/SortDropdown'; -import UIActions from '../actions/UIActions'; const methodsToBind = [ + 'handleAddTorrents', 'handleSortChange', 'handleStart', 'handleStop' @@ -27,6 +27,12 @@ export default class FilterBar extends React.Component { }); } + handleAddTorrents() { + this.props.dispatch(displayModal({ + modal: 'add-torrents' + })); + } + handleSortChange(sortBy) { this.props.dispatch(setTorrentsSort({ sortBy @@ -58,7 +64,8 @@ export default class FilterBar extends React.Component { clickHandler={this.handlePause} />