Browse Source

skip dashboard update if send/receive form activated

v0.25
pbca26 7 years ago
parent
commit
5f5c2ef974
  1. 6
      react/src/components/dashboard/coinTile/coinTileItem.js

6
react/src/components/dashboard/coinTile/coinTileItem.js

@ -266,7 +266,8 @@ class CoinTileItem extends React.Component {
)
);
if (!this.props.Dashboard.skipFullDashboardUpdate) {
if (!this.props.Dashboard.skipFullDashboardUpdate &&
this.props.ActiveCoin.activeSection === 'default') {
Store.dispatch(getDashboardUpdate(coin, _propsDashboard));
}
} else {
@ -279,7 +280,7 @@ class CoinTileItem extends React.Component {
)
);
}
} else if (mode === 'spv' && this.props.Dashboard.electrumCoins[coin].pub) {
} else if (mode === 'spv' && this.props.Dashboard.electrumCoins[coin].pub && this.props.ActiveCoin.activeSection === 'default') {
Store.dispatch(shepherdElectrumBalance(coin, this.props.Dashboard.electrumCoins[coin].pub));
Store.dispatch(shepherdElectrumTransactions(coin, this.props.Dashboard.electrumCoins[coin].pub));
}
@ -364,6 +365,7 @@ const mapStateToProps = (state) => {
progress: state.ActiveCoin.progress,
rescanInProgress: state.ActiveCoin.rescanInProgress,
getinfoFetchFailures: state.ActiveCoin.getinfoFetchFailures,
activeSection: state.ActiveCoin.activeSection,
},
Dashboard: state.Dashboard,
Interval: {

Loading…
Cancel
Save