diff options
author | Dan Miller <danjm.com@gmail.com> | 2018-12-05 20:34:19 +0800 |
---|---|---|
committer | Dan Miller <danjm.com@gmail.com> | 2018-12-13 01:23:37 +0800 |
commit | 0e5e51b8ff8a1db66d5310fa0d8b07f6480007e1 (patch) | |
tree | f94bcad1af6a69cf1ac8251bfd311e6df6c7ec9e /ui/app/components | |
parent | 47501a6f7ad092f9d941fffac1b3b5cc557c65c3 (diff) | |
download | tangerine-wallet-browser-0e5e51b8ff8a1db66d5310fa0d8b07f6480007e1.tar tangerine-wallet-browser-0e5e51b8ff8a1db66d5310fa0d8b07f6480007e1.tar.gz tangerine-wallet-browser-0e5e51b8ff8a1db66d5310fa0d8b07f6480007e1.tar.bz2 tangerine-wallet-browser-0e5e51b8ff8a1db66d5310fa0d8b07f6480007e1.tar.lz tangerine-wallet-browser-0e5e51b8ff8a1db66d5310fa0d8b07f6480007e1.tar.xz tangerine-wallet-browser-0e5e51b8ff8a1db66d5310fa0d8b07f6480007e1.tar.zst tangerine-wallet-browser-0e5e51b8ff8a1db66d5310fa0d8b07f6480007e1.zip |
Add identifier of private network to the network loading screen message.
Diffstat (limited to 'ui/app/components')
-rw-r--r-- | ui/app/components/network.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ui/app/components/network.js b/ui/app/components/network.js index ce042377d..e18404f42 100644 --- a/ui/app/components/network.js +++ b/ui/app/components/network.js @@ -23,14 +23,17 @@ Network.prototype.render = function () { const props = this.props const context = this.context const networkNumber = props.network - let providerName, providerNick + let providerName, providerNick, providerUrl try { providerName = props.provider.type providerNick = props.provider.nickname || '' + providerUrl = props.provider.rpcTarget } catch (e) { providerName = null } - let iconName, hoverText + const providerId = providerNick || providerName || providerUrl || null + let iconName + let hoverText if (providerName === 'mainnet') { hoverText = context.t('mainnet') @@ -48,8 +51,8 @@ Network.prototype.render = function () { hoverText = context.t('rinkeby') iconName = 'rinkeby-test-network' } else { - hoverText = context.t('unknownNetwork') - iconName = 'unknown-private-network' + hoverText = providerId + iconName = 'private-network' } return ( |