aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-11-22 03:45:31 +0800
committerDan Finlay <dan@danfinlay.com>2016-11-22 03:45:31 +0800
commit6ae2400ef2fc6e6c5096cc71b3fcf422ccc5e8b2 (patch)
tree3fe01c75054dde48d3324bf55387c1d81d1cd32a /ui
parent7021c7708c927b8723b6ba5842b451b6f46dbb3e (diff)
downloadtangerine-wallet-browser-6ae2400ef2fc6e6c5096cc71b3fcf422ccc5e8b2.tar.gz
tangerine-wallet-browser-6ae2400ef2fc6e6c5096cc71b3fcf422ccc5e8b2.tar.zst
tangerine-wallet-browser-6ae2400ef2fc6e6c5096cc71b3fcf422ccc5e8b2.zip
Fix custom provider menu item
The Custom RPC menu item in the provider menu would not appear when Localhost:8545 was selected.
Diffstat (limited to 'ui')
-rw-r--r--ui/app/app.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index 977392c57..ba0a57e02 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -250,6 +250,14 @@ App.prototype.renderNetworkDropdown = function () {
}),
this.renderCustomOption(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'),
+ }),
+
])
}
@@ -465,13 +473,6 @@ 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'),
- })
case 'http://localhost:8545':
return null