diff --git a/assets/mainWindow/js/init.js b/assets/mainWindow/js/init.js index b7f1414..612ba1d 100644 --- a/assets/mainWindow/js/init.js +++ b/assets/mainWindow/js/init.js @@ -3,6 +3,11 @@ $(document).ready(function() { var window = remote.getCurrentWindow(); var appConf = remote.getCurrentWindow().appConfig; + if (!appConf.experimentalFeatures) { + $('#normalStartBtn').hide(); + $('.dropdown-menu').css('right', '34.8%'); + } + $('#pulse').jRoll({ radius: 100, animation: 'pulse' diff --git a/react/src/components/dashboard/walletsBalance/walletsBalance.js b/react/src/components/dashboard/walletsBalance/walletsBalance.js index 3a37d8f..7508115 100755 --- a/react/src/components/dashboard/walletsBalance/walletsBalance.js +++ b/react/src/components/dashboard/walletsBalance/walletsBalance.js @@ -15,15 +15,36 @@ class WalletsBalance extends React.Component { super(); this.state = { currentAddress: null, + isExplorerData: false, }; this.isFullySynced = this.isFullySynced.bind(this); this.refreshBalance = this.refreshBalance.bind(this); } componentWillReceiveProps(props) { - if (!this.state.currentAddress && - this.props.ActiveCoin.activeAddress) { + if (this.props.ActiveCoin.activeAddress) { + const _mode = this.props.ActiveCoin.mode; + let _isExplorerData = false; + + if (_mode === 'basilisk') { + if (this.props.ActiveCoin.cache) { + const _cache = this.props.ActiveCoin.cache; + const _coin = this.props.ActiveCoin.coin; + const _address = this.props.ActiveCoin.activeAddress; + + if (_address && + _cache[_coin] && + _cache[_coin][_address] && + _cache[_coin][_address].getbalance && + _cache[_coin][_address].getbalance.data && + _cache[_coin][_address].getbalance.data.source) { + _isExplorerData = true; + } + } + } + this.setState(Object.assign({}, this.state, { + isExplorerData: _isExplorerData, currentAddress: this.props.ActiveCoin.activeAddress, })); } diff --git a/react/src/components/dashboard/walletsBalance/walletsBalance.render.js b/react/src/components/dashboard/walletsBalance/walletsBalance.render.js index 39b9f63..1513a6b 100644 --- a/react/src/components/dashboard/walletsBalance/walletsBalance.render.js +++ b/react/src/components/dashboard/walletsBalance/walletsBalance.render.js @@ -108,6 +108,8 @@ const WalletsBalanceRender = function() { + +