diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-10-26 05:16:04 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-10-26 05:16:04 +0800 |
commit | b1fb8da3b00b68060443066608dc511a4a836b86 (patch) | |
tree | ef23ffadf102a575305f7414b45092b851bd7870 /ui/app/app.js | |
parent | f7688ac3cf8939057013667f544d57dcb73937a5 (diff) | |
download | tangerine-wallet-browser-b1fb8da3b00b68060443066608dc511a4a836b86.tar tangerine-wallet-browser-b1fb8da3b00b68060443066608dc511a4a836b86.tar.gz tangerine-wallet-browser-b1fb8da3b00b68060443066608dc511a4a836b86.tar.bz2 tangerine-wallet-browser-b1fb8da3b00b68060443066608dc511a4a836b86.tar.lz tangerine-wallet-browser-b1fb8da3b00b68060443066608dc511a4a836b86.tar.xz tangerine-wallet-browser-b1fb8da3b00b68060443066608dc511a4a836b86.tar.zst tangerine-wallet-browser-b1fb8da3b00b68060443066608dc511a4a836b86.zip |
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, { |