aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-10-29 07:19:03 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-10-29 07:19:03 +0800
commit6eb6968037aeacd9c876912634ca5f4b5287957b (patch)
tree9e7c4978d07151eb44efedf4f335de300d62f543 /ui/app
parentb3cb3e9ec67a138767bb2d6833c9056a66d46b92 (diff)
parent48220cff0e57ea56d3b3e2c2711ca83a4db96c01 (diff)
downloadtangerine-wallet-browser-6eb6968037aeacd9c876912634ca5f4b5287957b.tar
tangerine-wallet-browser-6eb6968037aeacd9c876912634ca5f4b5287957b.tar.gz
tangerine-wallet-browser-6eb6968037aeacd9c876912634ca5f4b5287957b.tar.bz2
tangerine-wallet-browser-6eb6968037aeacd9c876912634ca5f4b5287957b.tar.lz
tangerine-wallet-browser-6eb6968037aeacd9c876912634ca5f4b5287957b.tar.xz
tangerine-wallet-browser-6eb6968037aeacd9c876912634ca5f4b5287957b.tar.zst
tangerine-wallet-browser-6eb6968037aeacd9c876912634ca5f4b5287957b.zip
Merge branch 'master' into i328-MultiVault
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/app.js15
-rw-r--r--ui/app/components/drop-menu-item.js2
2 files changed, 8 insertions, 9 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index 061545d59..588aa9896 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -236,6 +236,7 @@ App.prototype.renderNetworkDropdown = function () {
action: () => props.dispatch(actions.setProviderType('testnet')),
icon: h('.menu-icon.red-dot'),
activeNetworkRender: props.network,
+ provider: props.provider,
}),
h(DropMenuItem, {
@@ -246,13 +247,6 @@ App.prototype.renderNetworkDropdown = function () {
activeNetworkRender: props.provider.rpcTarget,
}),
- h(DropMenuItem, {
- label: 'Custom RPC',
- closeMenu: () => this.setState({ isNetworkMenuOpen: false }),
- action: () => this.props.dispatch(actions.showConfigPage()),
- icon: h('i.fa.fa-question-circle.fa-lg'),
- }),
-
this.renderCustomOption(props.provider.rpcTarget),
])
}
@@ -493,7 +487,12 @@ App.prototype.toggleMetamaskActive = function () {
App.prototype.renderCustomOption = function (rpcTarget) {
switch (rpcTarget) {
case undefined:
- return null
+ return h(DropMenuItem, {
+ label: 'Custom RPC',
+ closeMenu: () => this.setState({ isNetworkMenuOpen: false }),
+ action: () => this.props.dispatch(actions.showConfigPage()),
+ icon: h('i.fa.fa-question-circle.fa-lg'),
+ })
case 'http://localhost:8545':
return null
diff --git a/ui/app/components/drop-menu-item.js b/ui/app/components/drop-menu-item.js
index 0ca1988c6..8088680c0 100644
--- a/ui/app/components/drop-menu-item.js
+++ b/ui/app/components/drop-menu-item.js
@@ -42,7 +42,7 @@ DropMenuItem.prototype.activeNetworkRender = function () {
if (providerType === 'mainnet') return h('.check', '✓')
break
case 'Morden Test Network':
- if (activeNetwork === '2') return h('.check', '✓')
+ if (provider.type === 'testnet') return h('.check', '✓')
break
case 'Localhost 8545':
if (activeNetwork === 'http://localhost:8545') return h('.check', '✓')