Browse Source

Allow to flag disabled currencies so they still keep in sync

gre-patch-1
Gaëtan Renaudeau 6 years ago
parent
commit
f4c267151c
No known key found for this signature in database GPG Key ID: 7B66B85F042E5451
  1. 3
      src/bridge/BridgeSyncContext.js
  2. 1
      src/reducers/currenciesStatus.js

3
src/bridge/BridgeSyncContext.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
}

1
src/reducers/currenciesStatus.js

@ -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[]

Loading…
Cancel
Save