Implement remove and delete artifacts
This commit is contained in:
parent
59fbdb5013
commit
ab804eb503
|
@ -162,7 +162,12 @@ class Torrent extends Component {
|
|||
ws_send("REMOVE_RESOURCE", { id: torrent.id });
|
||||
}}
|
||||
>Remove</DropdownItem>
|
||||
<DropdownItem>Remove and delete files</DropdownItem>
|
||||
<DropdownItem
|
||||
onClick={() => {
|
||||
dispatch(selectTorrent([torrent.id], SUBTRACT));
|
||||
ws_send("REMOVE_RESOURCE", { id: torrent.id, artifacts: true });
|
||||
}}
|
||||
>Remove and delete files</DropdownItem>
|
||||
</DropdownMenu>
|
||||
</ButtonDropdown>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user