From 8f7bfafae8f97a2e70d0e0edcd991fc50a547980 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 1 Oct 2019 12:58:27 -0400 Subject: [PATCH] fix: only clear store on web when signing out --- src/ui/redux/actions/app.js | 6 +++++- static/app-strings.json | 27 +++++++++++++++++++++++++-- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/src/ui/redux/actions/app.js b/src/ui/redux/actions/app.js index 8b343d9b8..c4c0b4132 100644 --- a/src/ui/redux/actions/app.js +++ b/src/ui/redux/actions/app.js @@ -468,7 +468,11 @@ export function doSignIn() { export function doSignOut() { return dispatch => { deleteAuthToken() - .then(window.persistor.purge) + .then(() => { + // @if TARGET='web' + window.persistor.purge(); + // @endif + }) .then(() => { location.reload(); }) diff --git a/static/app-strings.json b/static/app-strings.json index 5ee0efc4f..e3c4aefa8 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -723,5 +723,28 @@ "Multi-language support is brand new and incomplete. Switching your language may have unintended consequences, like glossolalia.": "Multi-language support is brand new and incomplete. Switching your language may have unintended consequences, like glossolalia.", "This will add a Support button along side tipping. Similar to tips, supports help %discovery_link% but the LBC is returned to your wallet if revoked. Both also help secure your %vanity_names_link%.": "This will add a Support button along side tipping. Similar to tips, supports help %discovery_link% but the LBC is returned to your wallet if revoked. Both also help secure your %vanity_names_link%.", "Save Password": "Save Password", - "Automatically unlock your wallet on startup": "Automatically unlock your wallet on startup" -} + "Automatically unlock your wallet on startup": "Automatically unlock your wallet on startup", + "Sign In": "Sign In", + "Go Back": "Go Back", + "Welcome To LBRY": "Welcome To LBRY", + "Create a new account or sign in.": "Create a new account or sign in.", + "hotstuff_96@hotmail.com": "hotstuff_96@hotmail.com", + "Sync balance and preferences across devices": "Sync balance and preferences across devices", + "This feature is not yet available for wallets with balances, but the gerbils are working on it.": "This feature is not yet available for wallets with balances, but the gerbils are working on it.", + "Confirm Your Email": "Confirm Your Email", + "Follow the link to sign in. This will update automatically.": "Follow the link to sign in. This will update automatically.", + "Resend Verification Email": "Resend Verification Email", + "Start Over": "Start Over", + "Good To Go!": "Good To Go!", + "You now control your channel and your videos are being transferred to your account.": "You now control your channel and your videos are being transferred to your account.", + "Transfer In Progress...": "Transfer In Progress...", + "You can now publish and comment using your official channel.": "You can now publish and comment using your official channel.", + "Your Channels": "Your Channels", + "Your YouTube Channels": "Your YouTube Channels", + "Your videos are currently being transferred. There is nothing else for you to do.": "Your videos are currently being transferred. There is nothing else for you to do.", + "Completed transfer": "Completed transfer", + "Transfer in progress": "Transfer in progress", + "%complete% / %total% videos transferred": "%complete% / %total% videos transferred", + "Available Rewards": "Available Rewards", + "You have %credit_amount% in unclaimed rewards.": "You have %credit_amount% in unclaimed rewards." +} \ No newline at end of file