Browse Source
Allow to flag disabled currencies so they still keep in sync
gre-patch-1
Gaëtan Renaudeau
6 years ago
No known key found for this signature in database
GPG Key ID: 7B66B85F042E5451
2 changed files with
3 additions and
1 deletions
-
src/bridge/BridgeSyncContext.js
-
src/reducers/currenciesStatus.js
|
|
@ -77,7 +77,8 @@ class Provider extends Component<BridgeSyncProviderOwnProps, Sync> { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
if (currencyDownStatusLocal(this.props.currenciesStatus, account.currency)) { |
|
|
|
const downStatus = currencyDownStatusLocal(this.props.currenciesStatus, account.currency) |
|
|
|
if (downStatus && !downStatus.keepSync) { |
|
|
|
next() |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
@ -15,6 +15,7 @@ export type CurrencyStatus = { |
|
|
|
message: string, |
|
|
|
link: string, |
|
|
|
nonce: number, |
|
|
|
keepSync?: boolean, // even if something is happening, make live still stay in sync
|
|
|
|
} |
|
|
|
|
|
|
|
export type CurrenciesStatusState = CurrencyStatus[] |
|
|
|