diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-11-22 03:45:31 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-11-22 03:45:31 +0800 |
commit | 6ae2400ef2fc6e6c5096cc71b3fcf422ccc5e8b2 (patch) | |
tree | 3fe01c75054dde48d3324bf55387c1d81d1cd32a /ui/app/app.js | |
parent | 7021c7708c927b8723b6ba5842b451b6f46dbb3e (diff) | |
download | tangerine-wallet-browser-6ae2400ef2fc6e6c5096cc71b3fcf422ccc5e8b2.tar tangerine-wallet-browser-6ae2400ef2fc6e6c5096cc71b3fcf422ccc5e8b2.tar.gz tangerine-wallet-browser-6ae2400ef2fc6e6c5096cc71b3fcf422ccc5e8b2.tar.bz2 tangerine-wallet-browser-6ae2400ef2fc6e6c5096cc71b3fcf422ccc5e8b2.tar.lz tangerine-wallet-browser-6ae2400ef2fc6e6c5096cc71b3fcf422ccc5e8b2.tar.xz 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/app/app.js')
-rw-r--r-- | ui/app/app.js | 15 |
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 |