From df13f9758898a64fb4b98c45c4ae193a467647ed Mon Sep 17 00:00:00 2001 From: jessop Date: Fri, 18 Sep 2020 13:47:05 -0400 Subject: [PATCH] sync error messaging --- static/app-strings.json | 3 +++ ui/component/syncEnableFlow/view.jsx | 20 ++++++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/static/app-strings.json b/static/app-strings.json index 1b59e4001..a7f7ef67f 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -1309,5 +1309,8 @@ "Disabling sync will switch to your local profile.": "Disabling sync will switch to your local profile.", "Something went wrong...": "Something went wrong...", "To enable Sync, close LBRY completely and check 'Remember Password' during wallet unlock.": "To enable Sync, close LBRY completely and check 'Remember Password' during wallet unlock.", + "Something went wrong.": "Something went wrong.", + "Something went wrong. Please %click_here% to learn about sync limitations.": "Something went wrong. Please %click_here% to learn about sync limitations.", + "Buy LBC": "Buy LBC", "--end--": "--end--" } diff --git a/ui/component/syncEnableFlow/view.jsx b/ui/component/syncEnableFlow/view.jsx index e08acb792..41b6369c1 100644 --- a/ui/component/syncEnableFlow/view.jsx +++ b/ui/component/syncEnableFlow/view.jsx @@ -7,6 +7,7 @@ import { withRouter } from 'react-router'; import Spinner from 'component/spinner'; import { Lbry } from 'lbry-redux'; import ErrorText from 'component/common/error-text'; +import I18nMessage from 'component/i18nMessage'; type Props = { setSyncEnabled: boolean => void, @@ -158,8 +159,23 @@ function SyncEnableFlow(props: Props) { return ( + {(error || getSyncError) && ( + + ), + }} + > + Something went wrong. Please %click_here% to learn about sync limitations. + + )} {step === INITIAL && ( <>

{__(`Please wait...`)}

@@ -184,7 +200,6 @@ function SyncEnableFlow(props: Props) { )} {(error || getSyncError) && ( <> -

{__(`Something went wrong...`)}

{error || (getSyncError && String(getSyncError)) || __('Unknown error')} )} @@ -218,6 +233,7 @@ function SyncEnableFlow(props: Props) { {(error || getSyncError) && (
)}