Browse Source

dont log store updates in prod mode

all-modes
pbca26 8 years ago
parent
commit
31ea661553
  1. 2
      react/change.log
  2. 1
      react/src/components/dashboard/walletsData/walletsData.js
  3. 2
      react/src/components/login/login.render.js
  4. 3
      react/src/store.js

2
react/change.log

@ -11,6 +11,8 @@ UI:
- values rounding (up to 6 decimals)
- add coin multi ui reflow fix
- reset app setting to default
- manual balance / transactions list refresh
- quick access dropdown on login to open settings / about / sync only modals
v0.2.0.21a-beta
--------------

1
react/src/components/dashboard/walletsData/walletsData.js

@ -156,7 +156,6 @@ class WalletsData extends React.Component {
}));
break;
case 'native':
console.log('refresh');
Store.dispatch(getNativeTxHistory(_coin));
break;
case 'full':

2
react/src/components/login/login.render.js

@ -26,7 +26,7 @@ const LoginRender = function () {
className="login-settings-dropdown-trigger"
onClick={ this.toggleLoginSettingsDropdown }>
<i className="icon fa-cogs"></i>&nbsp;
<span className="login-settings-dropdown-label">Settings</span>
<span className="login-settings-dropdown-label">Quick access</span>
</span>
</div>
<div>

3
react/src/store.js

@ -3,6 +3,7 @@ import thunkMiddleware from 'redux-thunk';
import createLogger from 'redux-logger';
import { syncHistoryWithStore } from 'react-router-redux';
import { browserHistory } from 'react-router';
import Config from './config';
import rootReducer from './reducers/index';
@ -19,7 +20,7 @@ const defaultState = {
/* eslint-disable no-underscore-dangle */
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const enhancers = composeEnhancers(applyMiddleware(thunkMiddleware, loggerMiddleware));
const enhancers = Config.debug || Config.dev ? composeEnhancers(applyMiddleware(thunkMiddleware, loggerMiddleware)) : composeEnhancers(applyMiddleware(thunkMiddleware));
const store = createStore(
rootReducer,
defaultState,

Loading…
Cancel
Save