diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-08-30 03:49:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-30 03:49:17 +0800 |
commit | a9c738d4d3226f61942641a41c399c75a3e9eb3e (patch) | |
tree | 667e9439d3af86da6648831519d9f84c11e6bb6f /ui | |
parent | 47429fcbf597510bb22655eb1f4848983bba88d0 (diff) | |
parent | e39513ff1806128609588a0dce8bfed0d994188a (diff) | |
download | tangerine-wallet-browser-a9c738d4d3226f61942641a41c399c75a3e9eb3e.tar tangerine-wallet-browser-a9c738d4d3226f61942641a41c399c75a3e9eb3e.tar.gz tangerine-wallet-browser-a9c738d4d3226f61942641a41c399c75a3e9eb3e.tar.bz2 tangerine-wallet-browser-a9c738d4d3226f61942641a41c399c75a3e9eb3e.tar.lz tangerine-wallet-browser-a9c738d4d3226f61942641a41c399c75a3e9eb3e.tar.xz tangerine-wallet-browser-a9c738d4d3226f61942641a41c399c75a3e9eb3e.tar.zst tangerine-wallet-browser-a9c738d4d3226f61942641a41c399c75a3e9eb3e.zip |
Merge pull request #594 from MetaMask/i541-CustomMenuItemFix
Allow selecting custom rpc from menu even when custom rpc is selected
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/app.js | 15 |
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', |