aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/app.js
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2017-06-23 08:28:10 +0800
committerGitHub <noreply@github.com>2017-06-23 08:28:10 +0800
commitf022c7c714e17faf9558839116ba90ca8082e6b1 (patch)
tree7cab7a825004343b6f7d3aa909eef71d31391fc6 /ui/app/app.js
parent2a429253994a0df2aae27234a7ac11c870bdc713 (diff)
parentc0c588053a29a4406ef30de8628065429ff99595 (diff)
downloadtangerine-wallet-browser-f022c7c714e17faf9558839116ba90ca8082e6b1.tar
tangerine-wallet-browser-f022c7c714e17faf9558839116ba90ca8082e6b1.tar.gz
tangerine-wallet-browser-f022c7c714e17faf9558839116ba90ca8082e6b1.tar.bz2
tangerine-wallet-browser-f022c7c714e17faf9558839116ba90ca8082e6b1.tar.lz
tangerine-wallet-browser-f022c7c714e17faf9558839116ba90ca8082e6b1.tar.xz
tangerine-wallet-browser-f022c7c714e17faf9558839116ba90ca8082e6b1.tar.zst
tangerine-wallet-browser-f022c7c714e17faf9558839116ba90ca8082e6b1.zip
Merge pull request #1603 from MetaMask/AddTokenList
Add popular token list
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 })
},