go back after deleting file

This commit is contained in:
Sean Yesmunt 2019-08-30 10:01:39 -04:00
parent c834268081
commit 784ccc1b50
3 changed files with 13 additions and 8 deletions

View file

@ -62,9 +62,11 @@ export function doDeleteFileAndMaybeGoBack(uri, deleteFromComputer, abandonClaim
actions.push(doSetPlayingUri(null));
}
if (abandonClaim) {
actions.push(goBack());
}
// it would be nice to stay on the claim if you just want to delete it
// we need to alter autoplay to not start downloading again after you delete it
// if (abandonClaim) {
actions.push(goBack());
// }
dispatch(batchActions(...actions));
};

View file

@ -651,7 +651,6 @@
"New": "New",
"Loading": "Loading",
"I feel woosy! Stop spinning!": "I feel woosy! Stop spinning!",
"URI does not include name.": "URI does not include name.",
"This file is in your library.": "This file is in your library.",
"'claimName', 'channelName', and 'streamName' are all empty. One must be present to build a url.": "'claimName', 'channelName', and 'streamName' are all empty. One must be present to build a url.",
"Invalid claim ID %s.": "Invalid claim ID %s.",
@ -673,5 +672,9 @@
"Hindi": "Hindi",
"Greek": "Greek",
"Hide": "Hide",
"'contentName' should no longer be used. Use 'streamName' instead": "'contentName' should no longer be used. Use 'streamName' instead"
}
"'contentName' should no longer be used. Use 'streamName' instead": "'contentName' should no longer be used. Use 'streamName' instead",
"Sorry, we can't preview this file.": "Sorry, we can't preview this file.",
"View File": "View File",
"Close": "Close",
"LBRY Download Complete": "LBRY Download Complete"
}

View file

@ -6901,9 +6901,9 @@ lazy-val@^1.0.3, lazy-val@^1.0.4:
yargs "^13.2.2"
zstd-codec "^0.1.1"
lbry-redux@lbryio/lbry-redux#5f97dc03fd71bba01191310f0db33113810e87e2:
lbry-redux@lbryio/lbry-redux#48dd46a9a837d81cff8700b7a571baa8081bf3aa:
version "0.0.1"
resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/5f97dc03fd71bba01191310f0db33113810e87e2"
resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/48dd46a9a837d81cff8700b7a571baa8081bf3aa"
dependencies:
proxy-polyfill "0.1.6"
reselect "^3.0.0"