mirror of
https://github.com/zoriya/flood.git
synced 2026-05-26 00:36:50 +00:00
Add Check Hash menu item
This commit is contained in:
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;
|
||||
|
||||
Reference in New Issue
Block a user