aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-11-22 04:19:54 +0800
committerGitHub <noreply@github.com>2016-11-22 04:19:54 +0800
commit7cf6e372eb38a0ab2abd8256f6fc714855b63aef (patch)
treefa14d73ab9bad7e017a84dedbe445d9426cdbf72 /ui
parentdb5a4eab710389eee47b9840c4bb964f7d49b6b9 (diff)
parentbb06f5803daa2c78e38d271309f039f8a820b4c6 (diff)
downloadtangerine-wallet-browser-7cf6e372eb38a0ab2abd8256f6fc714855b63aef.tar
tangerine-wallet-browser-7cf6e372eb38a0ab2abd8256f6fc714855b63aef.tar.gz
tangerine-wallet-browser-7cf6e372eb38a0ab2abd8256f6fc714855b63aef.tar.bz2
tangerine-wallet-browser-7cf6e372eb38a0ab2abd8256f6fc714855b63aef.tar.lz
tangerine-wallet-browser-7cf6e372eb38a0ab2abd8256f6fc714855b63aef.tar.xz
tangerine-wallet-browser-7cf6e372eb38a0ab2abd8256f6fc714855b63aef.tar.zst
tangerine-wallet-browser-7cf6e372eb38a0ab2abd8256f6fc714855b63aef.zip
Merge pull request #837 from MetaMask/FixMenuItem
Fix custom provider menu item
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 7e63fa168..f9694214a 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -259,6 +259,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'),
+ }),
+
])
}
@@ -474,13 +482,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