1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 20:39:08 +01:00

change network name to rinkeby when selected

This commit is contained in:
Nickyg 2017-04-26 02:15:15 +05:30
parent e9aa37b699
commit d764e46a50

View File

@ -45,7 +45,7 @@ Network.prototype.render = function () {
iconName = 'kovan-test-network'
} else if (providerName === 'rinkeby') {
hoverText = 'Rinkeby Test Network'
iconName = 'unknown-private-network'
iconName = 'rinkeby-test-network'
}else {
hoverText = 'Unknown Private Network'
iconName = 'unknown-private-network'
@ -85,6 +85,15 @@ Network.prototype.render = function () {
}},
'Kovan Test Net'),
])
case 'rinkeby-test-network':
return h('.network-indicator', [
h('.menu-icon.hollow-diamond'),
h('.network-name', {
style: {
color: '#550077',
}},
'Rinkeby Test Net'),
])
default:
return h('.network-indicator', [
h('i.fa.fa-question-circle.fa-lg', {