aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/app.js
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-06-20 04:51:38 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-06-20 04:51:38 +0800
commit9da243f42d7f9a1bfc868b9637774c6fbad6af53 (patch)
treef37cc44c80a3c22f11b46c527dee66454ed70867 /ui/app/app.js
parent7ec7e1226691474ea200ccf867f7a7d1f0c1086a (diff)
parent39c7ed230d61b04d147e45a55ac7af0576961968 (diff)
downloadtangerine-wallet-browser-9da243f42d7f9a1bfc868b9637774c6fbad6af53.tar
tangerine-wallet-browser-9da243f42d7f9a1bfc868b9637774c6fbad6af53.tar.gz
tangerine-wallet-browser-9da243f42d7f9a1bfc868b9637774c6fbad6af53.tar.bz2
tangerine-wallet-browser-9da243f42d7f9a1bfc868b9637774c6fbad6af53.tar.lz
tangerine-wallet-browser-9da243f42d7f9a1bfc868b9637774c6fbad6af53.tar.xz
tangerine-wallet-browser-9da243f42d7f9a1bfc868b9637774c6fbad6af53.tar.zst
tangerine-wallet-browser-9da243f42d7f9a1bfc868b9637774c6fbad6af53.zip
Merge branch 'AddTokenList' of github.com:MetaMask/metamask-plugin into AddTokenList
Diffstat (limited to 'ui/app/app.js')
-rw-r--r--ui/app/app.js21
1 files changed, 14 insertions, 7 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index 53dbc3354..d444a8349 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -21,7 +21,7 @@ const generateLostAccountsNotice = require('../lib/lost-accounts-notice')
const ConfigScreen = require('./config')
const Import = require('./accounts/import')
const InfoScreen = require('./info')
-const LoadingIndicator = require('./components/loading')
+const Loading = require('./components/loading')
const SandwichExpando = require('sandwich-expando')
const MenuDroppo = require('menu-droppo')
const DropMenuItem = require('./components/drop-menu-item')
@@ -64,7 +64,11 @@ function mapStateToProps (state) {
App.prototype.render = function () {
var props = this.props
- const { isLoading, loadingMessage, transForward } = props
+ const { isLoading, loadingMessage, transForward, network } = props
+ const isLoadingNetwork = network === 'loading'
+ const loadMessage = loadingMessage || isLoadingNetwork ?
+ 'Searching for Network' : null
+
log.debug('Main ui render function')
return (
@@ -77,13 +81,16 @@ App.prototype.render = function () {
},
}, [
- h(LoadingIndicator, { isLoading, loadingMessage }),
-
// app bar
this.renderAppBar(),
this.renderNetworkDropdown(),
this.renderDropdown(),
+ h(Loading, {
+ isLoading: isLoading || isLoadingNetwork,
+ loadingMessage: loadMessage,
+ }),
+
// panel content
h('.app-primary.flex-grow' + (transForward ? '.from-right' : '.from-left'), {
style: {
@@ -124,7 +131,7 @@ App.prototype.renderAppBar = function () {
background: props.isUnlocked ? 'white' : 'none',
height: '36px',
position: 'relative',
- zIndex: 10,
+ zIndex: 12,
},
}, [
@@ -221,7 +228,7 @@ App.prototype.renderNetworkDropdown = function () {
onClickOutside: (event) => {
this.setState({ isNetworkMenuOpen: !isOpen })
},
- zIndex: 1,
+ zIndex: 11,
style: {
position: 'absolute',
left: 0,
@@ -300,7 +307,7 @@ App.prototype.renderDropdown = function () {
return h(MenuDroppo, {
isOpen: isOpen,
- zIndex: 1,
+ zIndex: 11,
onClickOutside: (event) => {
this.setState({ isMainMenuOpen: !isOpen })
},