aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-08-30 03:36:47 +0800
committerDan Finlay <dan@danfinlay.com>2016-08-30 03:36:47 +0800
commita8046296063e5d6cd60fa60ec46a4f15f0f2104f (patch)
tree99263b3bf878b78357a6fcda5891d54752abe930
parentf5baf36c07b95739eab81ebd85aa81842cf51bd5 (diff)
downloadtangerine-wallet-browser-a8046296063e5d6cd60fa60ec46a4f15f0f2104f.tar
tangerine-wallet-browser-a8046296063e5d6cd60fa60ec46a4f15f0f2104f.tar.gz
tangerine-wallet-browser-a8046296063e5d6cd60fa60ec46a4f15f0f2104f.tar.bz2
tangerine-wallet-browser-a8046296063e5d6cd60fa60ec46a4f15f0f2104f.tar.lz
tangerine-wallet-browser-a8046296063e5d6cd60fa60ec46a4f15f0f2104f.tar.xz
tangerine-wallet-browser-a8046296063e5d6cd60fa60ec46a4f15f0f2104f.tar.zst
tangerine-wallet-browser-a8046296063e5d6cd60fa60ec46a4f15f0f2104f.zip
Show custom rpc menu item always
-rw-r--r--ui/app/app.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index 70a6fcd64..b674efff1 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -249,6 +249,13 @@ 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', { ariaHidden: true }),
+ }),
+
this.renderCustomOption(props.provider.rpcTarget),
])
}
@@ -501,12 +508,8 @@ App.prototype.toggleMetamaskActive = function () {
App.prototype.renderCustomOption = function (rpcTarget) {
switch (rpcTarget) {
case undefined:
- 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', { ariaHidden: true }),
- })
+ return null
+
case 'http://localhost:8545':
return h(DropMenuItem, {
label: 'Custom RPC',