diff options
author | Nickyg <nicky.gurbani@gmail.com> | 2017-04-26 04:10:33 +0800 |
---|---|---|
committer | Nickyg <nicky.gurbani@gmail.com> | 2017-04-26 04:10:33 +0800 |
commit | e9aa37b699a105019384cbde88a114965ff1e2cd (patch) | |
tree | fb1421b92ea1d13163c2f6fa64528d94727b2165 /ui/app | |
parent | afbe6f5e5fa18b663cfe68c40a05bcacda73e3ac (diff) | |
download | tangerine-wallet-browser-e9aa37b699a105019384cbde88a114965ff1e2cd.tar tangerine-wallet-browser-e9aa37b699a105019384cbde88a114965ff1e2cd.tar.gz tangerine-wallet-browser-e9aa37b699a105019384cbde88a114965ff1e2cd.tar.bz2 tangerine-wallet-browser-e9aa37b699a105019384cbde88a114965ff1e2cd.tar.lz tangerine-wallet-browser-e9aa37b699a105019384cbde88a114965ff1e2cd.tar.xz tangerine-wallet-browser-e9aa37b699a105019384cbde88a114965ff1e2cd.tar.zst tangerine-wallet-browser-e9aa37b699a105019384cbde88a114965ff1e2cd.zip |
add rinkeby network
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/app.js | 9 | ||||
-rw-r--r-- | ui/app/components/drop-menu-item.js | 3 | ||||
-rw-r--r-- | ui/app/components/network.js | 5 | ||||
-rw-r--r-- | ui/app/config.js | 5 |
4 files changed, 21 insertions, 1 deletions
diff --git a/ui/app/app.js b/ui/app/app.js index 5a7596aca..4ae40b659 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -264,6 +264,15 @@ App.prototype.renderNetworkDropdown = function () { provider: props.provider, }), + h(DropMenuItem, { + label: 'Rinkeby Test Network', + closeMenu: () => this.setState({ isNetworkMenuOpen: false}), + action: () => props.dispatch(actions.setProviderType('rinkeby')), + icon: h('.menu-icon.hollow-diamond'), + activeNetworkRender: props.network, + provider: props.provider, + }), + h(DropMenuItem, { label: 'Localhost 8545', closeMenu: () => this.setState({ isNetworkMenuOpen: false }), diff --git a/ui/app/components/drop-menu-item.js b/ui/app/components/drop-menu-item.js index 3eb6ec876..bd9d8f597 100644 --- a/ui/app/components/drop-menu-item.js +++ b/ui/app/components/drop-menu-item.js @@ -47,6 +47,9 @@ DropMenuItem.prototype.activeNetworkRender = function () { case 'Kovan Test Network': if (providerType === 'kovan') return h('.check', '✓') break + case 'Rinkeby Test Network': + if (providerType === 'rinkeby') return h('.check', '✓') + break case 'Localhost 8545': if (activeNetwork === 'http://localhost:8545') return h('.check', '✓') break diff --git a/ui/app/components/network.js b/ui/app/components/network.js index d9045167f..f0fc14454 100644 --- a/ui/app/components/network.js +++ b/ui/app/components/network.js @@ -43,7 +43,10 @@ Network.prototype.render = function () { } else if (providerName === 'kovan') { hoverText = 'Kovan Test Network' iconName = 'kovan-test-network' - } else { + } else if (providerName === 'rinkeby') { + hoverText = 'Rinkeby Test Network' + iconName = 'unknown-private-network' + }else { hoverText = 'Unknown Private Network' iconName = 'unknown-private-network' } diff --git a/ui/app/config.js b/ui/app/config.js index 444365de2..26cfe663f 100644 --- a/ui/app/config.js +++ b/ui/app/config.js @@ -166,6 +166,11 @@ function currentProviderDisplay (metamaskState) { value = 'Kovan Test Network' break + case 'rinkeby': + title = 'Current Network' + value = 'Rinkeby Test Network' + break + default: title = 'Current RPC' value = metamaskState.provider.rpcTarget |