mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-03 02:35:12 +00:00
fix file delete on web
This commit is contained in:
parent
a06798966f
commit
700df02a59
1 changed files with 5 additions and 5 deletions
|
@ -34,11 +34,6 @@ export function doDeleteFile(outpoint, deleteFromComputer, abandonClaim) {
|
||||||
return (dispatch, getState) => {
|
return (dispatch, getState) => {
|
||||||
const state = getState();
|
const state = getState();
|
||||||
|
|
||||||
Lbry.file_delete({
|
|
||||||
outpoint,
|
|
||||||
delete_from_download_dir: deleteFromComputer,
|
|
||||||
});
|
|
||||||
|
|
||||||
// If the file is for a claim we published then also abandon the claim
|
// If the file is for a claim we published then also abandon the claim
|
||||||
const myClaimsOutpoints = selectMyClaimsOutpoints(state);
|
const myClaimsOutpoints = selectMyClaimsOutpoints(state);
|
||||||
if (abandonClaim && myClaimsOutpoints.includes(outpoint)) {
|
if (abandonClaim && myClaimsOutpoints.includes(outpoint)) {
|
||||||
|
@ -47,6 +42,11 @@ export function doDeleteFile(outpoint, deleteFromComputer, abandonClaim) {
|
||||||
dispatch(doAbandonClaim(txid, Number(nout)));
|
dispatch(doAbandonClaim(txid, Number(nout)));
|
||||||
}
|
}
|
||||||
// @if TARGET='app'
|
// @if TARGET='app'
|
||||||
|
Lbry.file_delete({
|
||||||
|
outpoint,
|
||||||
|
delete_from_download_dir: deleteFromComputer,
|
||||||
|
});
|
||||||
|
|
||||||
dispatch({
|
dispatch({
|
||||||
type: ACTIONS.FILE_DELETE,
|
type: ACTIONS.FILE_DELETE,
|
||||||
data: {
|
data: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue