diff options
Diffstat (limited to 'ui/app/components')
-rw-r--r-- | ui/app/components/drop-menu-item.js | 3 | ||||
-rw-r--r-- | ui/app/components/network.js | 40 |
2 files changed, 33 insertions, 10 deletions
diff --git a/ui/app/components/drop-menu-item.js b/ui/app/components/drop-menu-item.js index a31c9c7c4..00bb16868 100644 --- a/ui/app/components/drop-menu-item.js +++ b/ui/app/components/drop-menu-item.js @@ -41,7 +41,8 @@ DropMenuItem.prototype.activeNetworkRender = function () { if (activeNetwork === '2') return h('.check', ' ✓') break case 'Localhost 8545': - if (activeNetwork > '2') return h('.check', ' ✓') + debugger + if (activeNetwork === 'http://localhost:8545') return h('.check', ' ✓') break default: if (activeNetwork === 'custom') return h('.check', ' ✓') diff --git a/ui/app/components/network.js b/ui/app/components/network.js index 9f7287371..25488f6b7 100644 --- a/ui/app/components/network.js +++ b/ui/app/components/network.js @@ -47,17 +47,39 @@ Network.prototype.render = function () { (function () { switch (iconName) { case 'ethereum-network': - return h('.menu-icon.diamond') + return h('.network-indicator',[ + h('.menu-icon.diamond'), + h('.network-name',{ + style: { + color: '#039396', + }}, + 'Etherum Main Net') + ]) case 'morden-test-network': - return h('.menu-icon.red-dot') + return h('.network-indicator',[ + h('.menu-icon.red-dot'), + h('.network-name',{ + style: { + color: '#ff6666', + }}, + 'Morden Test Net') + ]) default: - return h('i.fa.fa-question-circle.fa-lg', { - ariaHidden: true, - style: { - margin: '10px', - color: 'rgb(125, 128, 130)', - }, - }) + return h('.network-indicator',[ + h('i.fa.fa-question-circle.fa-lg', { + ariaHidden: true, + style: { + margin: '10px', + color: 'rgb(125, 128, 130)', + }, + }), + + h('.network-name',{ + style: { + color: '#AEAEAE', + }}, + 'Private Network'), + ]) } })(), ]) |