aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/app.js
diff options
context:
space:
mode:
authorFrankie <frankie.pangilinan@consensys.net>2016-10-27 04:45:42 +0800
committerFrankie <frankie.pangilinan@consensys.net>2016-10-27 04:45:42 +0800
commit55530b013863f9f813be06a66478e81f17ff4d3b (patch)
tree3d8c52355599c23eacf3b4170db2fb63f4e8ccc6 /ui/app/app.js
parent5ae45fe17f4e897b67852f18fd8d2153f23d09eb (diff)
parent9df20e6c5594ba733d749297b12872ef4a15cd79 (diff)
downloadtangerine-wallet-browser-55530b013863f9f813be06a66478e81f17ff4d3b.tar
tangerine-wallet-browser-55530b013863f9f813be06a66478e81f17ff4d3b.tar.gz
tangerine-wallet-browser-55530b013863f9f813be06a66478e81f17ff4d3b.tar.bz2
tangerine-wallet-browser-55530b013863f9f813be06a66478e81f17ff4d3b.tar.lz
tangerine-wallet-browser-55530b013863f9f813be06a66478e81f17ff4d3b.tar.xz
tangerine-wallet-browser-55530b013863f9f813be06a66478e81f17ff4d3b.tar.zst
tangerine-wallet-browser-55530b013863f9f813be06a66478e81f17ff4d3b.zip
Merge branch 'master' into walkThrough
Diffstat (limited to 'ui/app/app.js')
-rw-r--r--ui/app/app.js15
1 files changed, 7 insertions, 8 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index 71e0637d0..ae6fe7071 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -240,6 +240,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, {
@@ -250,13 +251,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),
])
}
@@ -508,7 +502,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 h(DropMenuItem, {