diff --git a/src/bridge/BridgeSyncContext.js b/src/bridge/BridgeSyncContext.js index de1a5aa9..b3211ffb 100644 --- a/src/bridge/BridgeSyncContext.js +++ b/src/bridge/BridgeSyncContext.js @@ -77,7 +77,8 @@ class Provider extends Component { return } - if (currencyDownStatusLocal(this.props.currenciesStatus, account.currency)) { + const downStatus = currencyDownStatusLocal(this.props.currenciesStatus, account.currency) + if (downStatus && !downStatus.keepSync) { next() return } diff --git a/src/components/CurrenciesStatusBanner.js b/src/components/CurrenciesStatusBanner.js index df9af8f2..1b2123e7 100644 --- a/src/components/CurrenciesStatusBanner.js +++ b/src/components/CurrenciesStatusBanner.js @@ -116,7 +116,11 @@ class BannerItem extends PureComponent<{ render() { const { item, t } = this.props return ( - + @@ -159,6 +163,9 @@ const styles = { left: 32, bottom: 32, }, + warning: { + background: colors.orange, + }, banner: { background: colors.alertRed, overflow: 'hidden', diff --git a/src/components/CurrencyDownStatusAlert.js b/src/components/CurrencyDownStatusAlert.js index 8271e96c..6301c8e1 100644 --- a/src/components/CurrencyDownStatusAlert.js +++ b/src/components/CurrencyDownStatusAlert.js @@ -28,7 +28,7 @@ const CurrencyDownBox = styled(Box).attrs({ py: 2, mb: 4, })` - background-color: ${p => p.theme.colors.alertRed}; + background-color: ${p => (p.warning ? p.theme.colors.orange : p.theme.colors.alertRed)}; ` const Link = styled.span` @@ -48,7 +48,7 @@ class CurrencyDownStatusAlert extends PureComponent { const { status, t } = this.props if (!status) return null return ( - + diff --git a/src/reducers/currenciesStatus.js b/src/reducers/currenciesStatus.js index 3e98562a..b582fa87 100644 --- a/src/reducers/currenciesStatus.js +++ b/src/reducers/currenciesStatus.js @@ -15,6 +15,8 @@ export type CurrencyStatus = { message: string, link: string, nonce: number, + warning?: boolean, // display as a warning + keepSync?: boolean, // even if something is happening, make live still stay in sync } export type CurrenciesStatusState = CurrencyStatus[]