mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 02:10:12 +01:00
Indicate which network is being searched for
This commit is contained in:
parent
4e4d6cea40
commit
8f65f964ae
@ -68,7 +68,7 @@ App.prototype.render = function () {
|
|||||||
const { isLoading, loadingMessage, transForward, network } = props
|
const { isLoading, loadingMessage, transForward, network } = props
|
||||||
const isLoadingNetwork = network === 'loading'
|
const isLoadingNetwork = network === 'loading'
|
||||||
const loadMessage = loadingMessage || isLoadingNetwork ?
|
const loadMessage = loadingMessage || isLoadingNetwork ?
|
||||||
'Searching for Network' : null
|
`Connecting to ${this.getNetworkName()}` : null
|
||||||
|
|
||||||
log.debug('Main ui render function')
|
log.debug('Main ui render function')
|
||||||
|
|
||||||
@ -549,6 +549,27 @@ App.prototype.renderCustomOption = function (provider) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
App.prototype.getNetworkName = function () {
|
||||||
|
const { provider } = this.props
|
||||||
|
const providerName = provider.type
|
||||||
|
|
||||||
|
let name
|
||||||
|
|
||||||
|
if (providerName === 'mainnet') {
|
||||||
|
name = 'Main Ethereum Network'
|
||||||
|
} else if (providerName === 'ropsten') {
|
||||||
|
name = 'Ropsten Test Network'
|
||||||
|
} else if (providerName === 'kovan') {
|
||||||
|
name = 'Kovan Test Network'
|
||||||
|
} else if (providerName === 'rinkeby') {
|
||||||
|
name = 'Rinkeby Test Network'
|
||||||
|
} else {
|
||||||
|
name = 'Unknown Private Network'
|
||||||
|
}
|
||||||
|
|
||||||
|
return name
|
||||||
|
}
|
||||||
|
|
||||||
App.prototype.renderCommonRpc = function (rpcList, provider) {
|
App.prototype.renderCommonRpc = function (rpcList, provider) {
|
||||||
const { rpcTarget } = provider
|
const { rpcTarget } = provider
|
||||||
const props = this.props
|
const props = this.props
|
||||||
|
Loading…
Reference in New Issue
Block a user