Implement remove and delete artifacts

This commit is contained in:
Drew DeVault 2017-12-29 13:51:07 -05:00
parent 59fbdb5013
commit ab804eb503

View File

@ -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>