Add Check Hash menu item

This commit is contained in:
John Furrow
2016-06-17 21:24:09 -07:00
parent de11c69ff0
commit b7d6f82a23
10 changed files with 141 additions and 4 deletions
File diff suppressed because one or more lines are too long
@@ -115,6 +115,10 @@ export default class TorrentListContainer extends React.Component {
action: 'remove',
clickHandler,
label: 'Remove'
}, {
action: 'check-hash',
clickHandler,
label: 'Check Hash'
}, {
type: 'separator'
}, {
@@ -137,6 +141,9 @@ export default class TorrentListContainer extends React.Component {
handleContextMenuItemClick(action, event) {
let selectedTorrents = TorrentStore.getSelectedTorrents();
switch (action) {
case 'check-hash':
TorrentActions.checkHash(selectedTorrents);
break;
case 'start':
TorrentActions.startTorrents(selectedTorrents);
break;