aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/app.js
diff options
context:
space:
mode:
authorDan Miller <danjm.com@gmail.com>2018-12-05 20:34:19 +0800
committerDan Miller <danjm.com@gmail.com>2018-12-13 01:23:37 +0800
commit0e5e51b8ff8a1db66d5310fa0d8b07f6480007e1 (patch)
treef94bcad1af6a69cf1ac8251bfd311e6df6c7ec9e /ui/app/app.js
parent47501a6f7ad092f9d941fffac1b3b5cc557c65c3 (diff)
downloadtangerine-wallet-browser-0e5e51b8ff8a1db66d5310fa0d8b07f6480007e1.tar.gz
tangerine-wallet-browser-0e5e51b8ff8a1db66d5310fa0d8b07f6480007e1.tar.zst
tangerine-wallet-browser-0e5e51b8ff8a1db66d5310fa0d8b07f6480007e1.zip
Add identifier of private network to the network loading screen message.
Diffstat (limited to 'ui/app/app.js')
-rw-r--r--ui/app/app.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index 7669a5db9..4e58a6396 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -7,7 +7,7 @@ const h = require('react-hyperscript')
const actions = require('./actions')
const classnames = require('classnames')
const log = require('loglevel')
-const { getMetaMaskAccounts } = require('./selectors')
+const { getMetaMaskAccounts, getNetworkIdentifier } = require('./selectors')
// init
const InitializeScreen = require('../../mascara/src/app/first-time').default
@@ -196,7 +196,7 @@ class App extends Component {
if (loadingMessage) {
return loadingMessage
}
- const { provider } = this.props
+ const { provider, providerId } = this.props
const providerName = provider.type
let name
@@ -210,7 +210,7 @@ class App extends Component {
} else if (providerName === 'rinkeby') {
name = this.context.t('connectingToRinkeby')
} else {
- name = this.context.t('connectingToUnknown')
+ name = this.context.t('connectingTo', [providerId])
}
return name
@@ -279,6 +279,7 @@ App.propTypes = {
isMouseUser: PropTypes.bool,
setMouseUserState: PropTypes.func,
t: PropTypes.func,
+ providerId: PropTypes.string,
}
function mapStateToProps (state) {
@@ -348,6 +349,7 @@ function mapStateToProps (state) {
isRevealingSeedWords: state.metamask.isRevealingSeedWords,
Qr: state.appState.Qr,
welcomeScreenSeen: state.metamask.welcomeScreenSeen,
+ providerId: getNetworkIdentifier(state),
// state needed to get account dropdown temporarily rendering from app bar
identities,