diff options
author | Evgeniy Filatov <efilatov@geeksforless.net> | 2018-08-20 01:25:33 +0800 |
---|---|---|
committer | Evgeniy Filatov <efilatov@geeksforless.net> | 2018-08-23 06:18:13 +0800 |
commit | b23cca14699b6c6a8c843c9cc020ec96fe758822 (patch) | |
tree | 482ceba0213032e1de8d614dc0cc5c76d8946875 /ui/app | |
parent | 25eac2334b96b8b2af6b8859631d8a032bfdd2bb (diff) | |
download | tangerine-wallet-browser-b23cca14699b6c6a8c843c9cc020ec96fe758822.tar tangerine-wallet-browser-b23cca14699b6c6a8c843c9cc020ec96fe758822.tar.gz tangerine-wallet-browser-b23cca14699b6c6a8c843c9cc020ec96fe758822.tar.bz2 tangerine-wallet-browser-b23cca14699b6c6a8c843c9cc020ec96fe758822.tar.lz tangerine-wallet-browser-b23cca14699b6c6a8c843c9cc020ec96fe758822.tar.xz tangerine-wallet-browser-b23cca14699b6c6a8c843c9cc020ec96fe758822.tar.zst tangerine-wallet-browser-b23cca14699b6c6a8c843c9cc020ec96fe758822.zip |
implemented improvements to RPC history
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/components/dropdowns/network-dropdown.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ui/app/components/dropdowns/network-dropdown.js b/ui/app/components/dropdowns/network-dropdown.js index e5363ff56..003ec1b98 100644 --- a/ui/app/components/dropdowns/network-dropdown.js +++ b/ui/app/components/dropdowns/network-dropdown.js @@ -275,7 +275,9 @@ NetworkDropdown.prototype.renderCommonRpc = function (rpcList, provider) { const rpcTarget = provider.rpcTarget return rpcList.map((rpc) => { - if ((rpc === 'http://localhost:8545') || (rpc === rpcTarget)) { + const currentRpcTarget = provider.type === 'rpc' && rpc === rpcTarget + + if ((rpc === 'http://localhost:8545') || currentRpcTarget) { return null } else { return h( @@ -291,17 +293,17 @@ NetworkDropdown.prototype.renderCommonRpc = function (rpcList, provider) { }, }, [ - rpcTarget === rpc ? h('i.fa.fa-check') : h('.network-check__transparent', '✓'), + currentRpcTarget ? h('i.fa.fa-check') : h('.network-check__transparent', '✓'), h('i.fa.fa-question-circle.fa-med.menu-icon-circle'), h('span.network-name-item', { style: { - color: rpcTarget === rpc ? '#ffffff' : '#9b9b9b', + color: currentRpcTarget ? '#ffffff' : '#9b9b9b', }, }, rpc), ] ) } - }) + }).reverse() } NetworkDropdown.prototype.renderCustomOption = function (provider) { |