diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2016-10-27 02:06:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-27 02:06:29 +0800 |
commit | 2dad59b56194a4094130ad8895340c0b084465c7 (patch) | |
tree | 80eb39b1352483ce43364502a7de52467de1b439 /ui/app/app.js | |
parent | 693c30d784a76880a92f00940f49528e58700310 (diff) | |
parent | f1bbaeea5090926f6f815a890bd673fc3e720468 (diff) | |
download | tangerine-wallet-browser-2dad59b56194a4094130ad8895340c0b084465c7.tar tangerine-wallet-browser-2dad59b56194a4094130ad8895340c0b084465c7.tar.gz tangerine-wallet-browser-2dad59b56194a4094130ad8895340c0b084465c7.tar.bz2 tangerine-wallet-browser-2dad59b56194a4094130ad8895340c0b084465c7.tar.lz tangerine-wallet-browser-2dad59b56194a4094130ad8895340c0b084465c7.tar.xz tangerine-wallet-browser-2dad59b56194a4094130ad8895340c0b084465c7.tar.zst tangerine-wallet-browser-2dad59b56194a4094130ad8895340c0b084465c7.zip |
Merge pull request #764 from MetaMask/761-FixCustomMordenIndication
Fix provider menu selection indication
Diffstat (limited to 'ui/app/app.js')
-rw-r--r-- | ui/app/app.js | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/ui/app/app.js b/ui/app/app.js index 71e0637d0..ae6fe7071 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -240,6 +240,7 @@ App.prototype.renderNetworkDropdown = function () { action: () => props.dispatch(actions.setProviderType('testnet')), icon: h('.menu-icon.red-dot'), activeNetworkRender: props.network, + provider: props.provider, }), h(DropMenuItem, { @@ -250,13 +251,6 @@ 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'), - }), - this.renderCustomOption(props.provider.rpcTarget), ]) } @@ -508,7 +502,12 @@ App.prototype.toggleMetamaskActive = function () { App.prototype.renderCustomOption = function (rpcTarget) { switch (rpcTarget) { case undefined: - return null + 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 h(DropMenuItem, { |