aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/app.js
diff options
context:
space:
mode:
authorFrankie <frankie.pangilinan@consensys.net>2016-06-30 06:04:16 +0800
committerFrankie <frankie.pangilinan@consensys.net>2016-06-30 06:04:16 +0800
commit2c36c17238b7641295e1ed6e51e11b2842c03fdb (patch)
tree32a489fceb1678e671559569a9ce193840ed6b5f /ui/app/app.js
parent8d9a0e71771db12757f8f9dc4c3682f5e377a6b6 (diff)
downloadtangerine-wallet-browser-2c36c17238b7641295e1ed6e51e11b2842c03fdb.tar
tangerine-wallet-browser-2c36c17238b7641295e1ed6e51e11b2842c03fdb.tar.gz
tangerine-wallet-browser-2c36c17238b7641295e1ed6e51e11b2842c03fdb.tar.bz2
tangerine-wallet-browser-2c36c17238b7641295e1ed6e51e11b2842c03fdb.tar.lz
tangerine-wallet-browser-2c36c17238b7641295e1ed6e51e11b2842c03fdb.tar.xz
tangerine-wallet-browser-2c36c17238b7641295e1ed6e51e11b2842c03fdb.tar.zst
tangerine-wallet-browser-2c36c17238b7641295e1ed6e51e11b2842c03fdb.zip
Add ✓ charchter to indicate active network
Diffstat (limited to 'ui/app/app.js')
-rw-r--r--ui/app/app.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index 8297ed796..034e062e6 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -214,6 +214,7 @@ App.prototype.renderNetworkDropdown = function () {
closeMenu: () => this.setState({ isNetworkMenuOpen: false }),
action: () => props.dispatch(actions.setProviderType('mainnet')),
icon: h('.menu-icon.diamond'),
+ activeNetworkRender: props.network,
}),
h(DropMenuItem, {
@@ -221,6 +222,7 @@ App.prototype.renderNetworkDropdown = function () {
closeMenu: () => this.setState({ isNetworkMenuOpen: false }),
action: () => props.dispatch(actions.setProviderType('testnet')),
icon: h('.menu-icon.red-dot'),
+ activeNetworkRender: props.network,
}),
h(DropMenuItem, {
@@ -228,6 +230,7 @@ App.prototype.renderNetworkDropdown = function () {
closeMenu: () => this.setState({ isNetworkMenuOpen: false }),
action: () => props.dispatch(actions.setRpcTarget('http://localhost:8545')),
icon: h('i.fa.fa-question-circle.fa-lg', { ariaHidden: true }),
+ activeNetworkRender: props.provider.rpcTarget,
}),
this.renderCustomOption(props.provider.rpcTarget),
])
@@ -367,12 +370,20 @@ App.prototype.renderCustomOption = function (rpcTarget) {
action: () => this.props.dispatch(actions.showConfigPage()),
icon: h('i.fa.fa-question-circle.fa-lg', { ariaHidden: true }),
})
+ case 'http://localhost:8545':
+ 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', { ariaHidden: true }),
+ })
default:
return h(DropMenuItem, {
label: `${rpcTarget}`,
closeMenu: () => this.setState({ isNetworkMenuOpen: false }),
icon: h('i.fa.fa-question-circle.fa-lg', { ariaHidden: true }),
+ activeNetworkRender: 'custom'
})
}
}