From 784ccc1b506fee4156a92fd540f23ec5834cffd1 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Fri, 30 Aug 2019 10:01:39 -0400 Subject: [PATCH] go back after deleting file --- src/ui/redux/actions/file.js | 8 +++++--- static/locales/en.json | 9 ++++++--- yarn.lock | 4 ++-- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/ui/redux/actions/file.js b/src/ui/redux/actions/file.js index 5800191f9..44048742a 100644 --- a/src/ui/redux/actions/file.js +++ b/src/ui/redux/actions/file.js @@ -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)); }; diff --git a/static/locales/en.json b/static/locales/en.json index 0ff949d2c..1ffde7a5a 100644 --- a/static/locales/en.json +++ b/static/locales/en.json @@ -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" +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 2120ce4ac..da65f9842 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"