aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorFrankie <frankie.pangilinan@consensys.net>2016-08-13 06:47:03 +0800
committerFrankie <frankie.pangilinan@consensys.net>2016-08-13 06:47:03 +0800
commit632465b21399daf01e567f3fe1a8bfc271488f9c (patch)
treebe0850572d2b0969d9d3a1c727b4f16e46475777 /ui
parentb4c9a5225947f9aadac5fd1bb23fde64740d774a (diff)
parent4572e689cf3feef22d49ee71f1465a11b305a13c (diff)
downloadtangerine-wallet-browser-632465b21399daf01e567f3fe1a8bfc271488f9c.tar
tangerine-wallet-browser-632465b21399daf01e567f3fe1a8bfc271488f9c.tar.gz
tangerine-wallet-browser-632465b21399daf01e567f3fe1a8bfc271488f9c.tar.bz2
tangerine-wallet-browser-632465b21399daf01e567f3fe1a8bfc271488f9c.tar.lz
tangerine-wallet-browser-632465b21399daf01e567f3fe1a8bfc271488f9c.tar.xz
tangerine-wallet-browser-632465b21399daf01e567f3fe1a8bfc271488f9c.tar.zst
tangerine-wallet-browser-632465b21399daf01e567f3fe1a8bfc271488f9c.zip
Merge branch 'master' into buyForm
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/network.js2
-rw-r--r--ui/app/store.js15
2 files changed, 10 insertions, 7 deletions
diff --git a/ui/app/components/network.js b/ui/app/components/network.js
index 95901fe70..4a5449836 100644
--- a/ui/app/components/network.js
+++ b/ui/app/components/network.js
@@ -23,7 +23,7 @@ Network.prototype.render = function () {
if (networkNumber === 'loading') {
- return h('img', {
+ return h('img.network-indicator', {
title: 'Attempting to connect to blockchain.',
onClick: (event) => this.props.onClick(event),
style: {
diff --git a/ui/app/store.js b/ui/app/store.js
index 363a51cea..8d891bdc9 100644
--- a/ui/app/store.js
+++ b/ui/app/store.js
@@ -1,17 +1,20 @@
const createStore = require('redux').createStore
const applyMiddleware = require('redux').applyMiddleware
const thunkMiddleware = require('redux-thunk')
-// const createLogger = require('redux-logger')
const rootReducer = require('./reducers')
+const createLogger = require('redux-logger')
+
+global.METAMASK_DEBUG = false
module.exports = configureStore
-// const loggerMiddleware = createLogger()
+const loggerMiddleware = createLogger({
+ predicate: () => global.METAMASK_DEBUG,
+})
+
+const middlewares = [thunkMiddleware, loggerMiddleware]
-const createStoreWithMiddleware = applyMiddleware(
- thunkMiddleware
- // // loggerMiddleware
-)(createStore)
+const createStoreWithMiddleware = applyMiddleware(...middlewares)(createStore)
function configureStore (initialState) {
return createStoreWithMiddleware(rootReducer, initialState)