aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/drop-menu-item.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-06-30 08:26:48 +0800
committerDan Finlay <dan@danfinlay.com>2016-06-30 08:26:48 +0800
commitab5730aa26d23b64f5ddcc6f507502d9a0a6ee81 (patch)
treedd897fa553a21549a044ffede61cb6ac84f81db4 /ui/app/components/drop-menu-item.js
parentd34dcc66d705dacaf7f7db16b5302808217b0c68 (diff)
parent4433618e95b8d5638bf890e746a6bc7c3793ba80 (diff)
downloadtangerine-wallet-browser-ab5730aa26d23b64f5ddcc6f507502d9a0a6ee81.tar
tangerine-wallet-browser-ab5730aa26d23b64f5ddcc6f507502d9a0a6ee81.tar.gz
tangerine-wallet-browser-ab5730aa26d23b64f5ddcc6f507502d9a0a6ee81.tar.bz2
tangerine-wallet-browser-ab5730aa26d23b64f5ddcc6f507502d9a0a6ee81.tar.lz
tangerine-wallet-browser-ab5730aa26d23b64f5ddcc6f507502d9a0a6ee81.tar.xz
tangerine-wallet-browser-ab5730aa26d23b64f5ddcc6f507502d9a0a6ee81.tar.zst
tangerine-wallet-browser-ab5730aa26d23b64f5ddcc6f507502d9a0a6ee81.zip
Merge branch 'master' of github.com:MetaMask/metamask-plugin
Diffstat (limited to 'ui/app/components/drop-menu-item.js')
-rw-r--r--ui/app/components/drop-menu-item.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/ui/app/components/drop-menu-item.js b/ui/app/components/drop-menu-item.js
index 5531ebf9f..69294c94d 100644
--- a/ui/app/components/drop-menu-item.js
+++ b/ui/app/components/drop-menu-item.js
@@ -25,5 +25,25 @@ DropMenuItem.prototype.render = function () {
}, [
this.props.icon,
this.props.label,
+ this.activeNetworkRender(),
])
}
+
+DropMenuItem.prototype.activeNetworkRender = function () {
+ var activeNetwork = this.props.activeNetworkRender
+ if (activeNetwork === undefined) return
+
+ switch (this.props.label) {
+ case 'Main Ethereum Network':
+ if (activeNetwork === '1') return h('.check', ' ✓')
+ break
+ case 'Morden Test Network':
+ if (activeNetwork === '2') return h('.check', ' ✓')
+ break
+ case 'Localhost 8545':
+ if (activeNetwork === 'http://localhost:8545') return h('.check', ' ✓')
+ break
+ default:
+ if (activeNetwork === 'custom') return h('.check', ' ✓')
+ }
+}