aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-07-04 06:12:24 +0800
committerDan Finlay <dan@danfinlay.com>2017-07-04 06:12:24 +0800
commit8f65f964ae122fb4df21e3644c8653bc1426c43c (patch)
tree6ff2bf038962dc56b038c653193f7546ac8490a3 /ui
parent4e4d6cea403373e7f7d493775981cfa2a97da5f4 (diff)
downloadtangerine-wallet-browser-8f65f964ae122fb4df21e3644c8653bc1426c43c.tar
tangerine-wallet-browser-8f65f964ae122fb4df21e3644c8653bc1426c43c.tar.gz
tangerine-wallet-browser-8f65f964ae122fb4df21e3644c8653bc1426c43c.tar.bz2
tangerine-wallet-browser-8f65f964ae122fb4df21e3644c8653bc1426c43c.tar.lz
tangerine-wallet-browser-8f65f964ae122fb4df21e3644c8653bc1426c43c.tar.xz
tangerine-wallet-browser-8f65f964ae122fb4df21e3644c8653bc1426c43c.tar.zst
tangerine-wallet-browser-8f65f964ae122fb4df21e3644c8653bc1426c43c.zip
Indicate which network is being searched for
Diffstat (limited to 'ui')
-rw-r--r--ui/app/app.js23
1 files changed, 22 insertions, 1 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index ce543a082..8fb424786 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -68,7 +68,7 @@ App.prototype.render = function () {
const { isLoading, loadingMessage, transForward, network } = props
const isLoadingNetwork = network === 'loading'
const loadMessage = loadingMessage || isLoadingNetwork ?
- 'Searching for Network' : null
+ `Connecting to ${this.getNetworkName()}` : null
log.debug('Main ui render function')
@@ -549,6 +549,27 @@ App.prototype.renderCustomOption = function (provider) {
}
}
+App.prototype.getNetworkName = function () {
+ const { provider } = this.props
+ const providerName = provider.type
+
+ let name
+
+ if (providerName === 'mainnet') {
+ name = 'Main Ethereum Network'
+ } else if (providerName === 'ropsten') {
+ name = 'Ropsten Test Network'
+ } else if (providerName === 'kovan') {
+ name = 'Kovan Test Network'
+ } else if (providerName === 'rinkeby') {
+ name = 'Rinkeby Test Network'
+ } else {
+ name = 'Unknown Private Network'
+ }
+
+ return name
+}
+
App.prototype.renderCommonRpc = function (rpcList, provider) {
const { rpcTarget } = provider
const props = this.props