mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add Localhost 8545 for network dropdown names
This commit is contained in:
parent
7e0006a7fd
commit
d7a2ea9a2b
@ -308,6 +308,9 @@
|
|||||||
"connectingToRinkeby": {
|
"connectingToRinkeby": {
|
||||||
"message": "Connecting to Rinkeby Test Network"
|
"message": "Connecting to Rinkeby Test Network"
|
||||||
},
|
},
|
||||||
|
"connectingToLocalhost": {
|
||||||
|
"message": "Connecting to Localhost 8545"
|
||||||
|
},
|
||||||
"connectingToUnknown": {
|
"connectingToUnknown": {
|
||||||
"message": "Connecting to Unknown Network"
|
"message": "Connecting to Unknown Network"
|
||||||
},
|
},
|
||||||
|
@ -285,6 +285,8 @@ NetworkDropdown.prototype.getNetworkName = function () {
|
|||||||
name = this.context.t('kovan')
|
name = this.context.t('kovan')
|
||||||
} else if (providerName === 'rinkeby') {
|
} else if (providerName === 'rinkeby') {
|
||||||
name = this.context.t('rinkeby')
|
name = this.context.t('rinkeby')
|
||||||
|
} else if (providerName === 'localhost') {
|
||||||
|
name = this.context.t('localhost')
|
||||||
} else {
|
} else {
|
||||||
name = provider.nickname || this.context.t('unknownNetwork')
|
name = provider.nickname || this.context.t('unknownNetwork')
|
||||||
}
|
}
|
||||||
|
@ -45,6 +45,8 @@ export default class LoadingNetworkScreen extends PureComponent {
|
|||||||
name = this.context.t('connectingToKovan')
|
name = this.context.t('connectingToKovan')
|
||||||
} else if (providerName === 'rinkeby') {
|
} else if (providerName === 'rinkeby') {
|
||||||
name = this.context.t('connectingToRinkeby')
|
name = this.context.t('connectingToRinkeby')
|
||||||
|
} else if (providerName === 'localhost') {
|
||||||
|
name = this.context.t('connectingToLocalhost')
|
||||||
} else {
|
} else {
|
||||||
name = this.context.t('connectingTo', [providerId])
|
name = this.context.t('connectingTo', [providerId])
|
||||||
}
|
}
|
||||||
|
@ -139,7 +139,7 @@ Network.prototype.render = function () {
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
||||||
h('.network-name', providerNick || context.t('privateNetwork')),
|
h('.network-name', providerName === 'localhost' ? context.t('localhost') : providerNick || context.t('privateNetwork')),
|
||||||
h('i.fa.fa-chevron-down.fa-lg.network-caret'),
|
h('i.fa.fa-chevron-down.fa-lg.network-caret'),
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
@ -267,6 +267,8 @@ class Routes extends Component {
|
|||||||
name = this.context.t('connectingToKovan')
|
name = this.context.t('connectingToKovan')
|
||||||
} else if (providerName === 'rinkeby') {
|
} else if (providerName === 'rinkeby') {
|
||||||
name = this.context.t('connectingToRinkeby')
|
name = this.context.t('connectingToRinkeby')
|
||||||
|
} else if (providerName === 'localhost') {
|
||||||
|
name = this.context.t('connectingToLocalhost')
|
||||||
} else {
|
} else {
|
||||||
name = this.context.t('connectingTo', [providerId])
|
name = this.context.t('connectingTo', [providerId])
|
||||||
}
|
}
|
||||||
@ -288,6 +290,8 @@ class Routes extends Component {
|
|||||||
name = this.context.t('kovan')
|
name = this.context.t('kovan')
|
||||||
} else if (providerName === 'rinkeby') {
|
} else if (providerName === 'rinkeby') {
|
||||||
name = this.context.t('rinkeby')
|
name = this.context.t('rinkeby')
|
||||||
|
} else if (providerName === 'localhost') {
|
||||||
|
name = this.context.t('localhost')
|
||||||
} else {
|
} else {
|
||||||
name = this.context.t('unknownNetwork')
|
name = this.context.t('unknownNetwork')
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user