Browse Source

spv lock, logout hide cond fix

v0.25
pbca26 7 years ago
parent
commit
6092c387c3
  1. 2
      react/src/components/dashboard/coinTile/coinTileItem.js
  2. 1
      react/src/components/dashboard/navbar/navbar.js
  3. 10
      react/src/components/dashboard/navbar/navbar.render.js
  4. 2
      react/src/translate/en.js

2
react/src/components/dashboard/coinTile/coinTileItem.js

@ -30,7 +30,7 @@ import Config from '../../../config';
import CoinTileItemRender from './coinTileItem.render'; import CoinTileItemRender from './coinTileItem.render';
const SPV_DASHBOARD_UPDATE_TIMEOUT = 10000; const SPV_DASHBOARD_UPDATE_TIMEOUT = 60000;
const ACTIVE_HANDLE_TIMEOUT_COIND_NATIVE = 15000; const ACTIVE_HANDLE_TIMEOUT_COIND_NATIVE = 15000;
const COIND_DOWN_MODAL_FETCH_FAILURES_THRESHOLD = window.require('electron').remote.getCurrentWindow().appConfig.failedRPCAttemptsThreshold || 10; const COIND_DOWN_MODAL_FETCH_FAILURES_THRESHOLD = window.require('electron').remote.getCurrentWindow().appConfig.failedRPCAttemptsThreshold || 10;

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

@ -130,6 +130,7 @@ const mapStateToProps = (state) => {
}, },
Main: { Main: {
isLoggedIn: state.Main.isLoggedIn, isLoggedIn: state.Main.isLoggedIn,
coins: state.Main.coins,
}, },
}; };
}; };

10
react/src/components/dashboard/navbar/navbar.render.js

@ -111,8 +111,9 @@ const NavbarRender = function() {
</li> </li>
{ this.props.Main && { this.props.Main &&
this.props.Main.isLoggedIn && this.props.Main.isLoggedIn &&
this.props.Main.spv && this.props.Main.coins &&
this.props.Main.spv.length && this.props.Main.coins.spv &&
this.props.Main.coins.spv.length &&
<li> <li>
<a onClick={ this.spvLock }> <a onClick={ this.spvLock }>
<i className="icon fa-lock"></i> Lock <i className="icon fa-lock"></i> Lock
@ -121,8 +122,9 @@ const NavbarRender = function() {
} }
{ this.props.Main && { this.props.Main &&
this.props.Main.isLoggedIn && this.props.Main.isLoggedIn &&
this.props.Main.spv && this.props.Main.coins &&
this.props.Main.spv.length && this.props.Main.coins.spv &&
this.props.Main.coins.spv.length &&
<li> <li>
<a onClick={ this.spvLogout }> <a onClick={ this.spvLogout }>
<i className="icon fa-power-off"></i> Logout <i className="icon fa-power-off"></i> Logout

2
react/src/translate/en.js

@ -471,6 +471,8 @@ export const _lang = {
'CURRENT_BLOCK_SM': 'current block', 'CURRENT_BLOCK_SM': 'current block',
}, },
'TOASTR': { 'TOASTR': {
'PORT_IS_TAKEN': 'Port @template@ is already taken!',
'ERROR_STARTING_DAEMON': 'Error starting @template@ daemon.',
'KOMODO_DATADIR_INVALID': 'Komodo datadir path is invalid.<br>It must be an absolute path to an existing folder that doesn\'t contain spaces and/or any special characters.', 'KOMODO_DATADIR_INVALID': 'Komodo datadir path is invalid.<br>It must be an absolute path to an existing folder that doesn\'t contain spaces and/or any special characters.',
'KOMODO_DATADIR_NOT_DIR': 'Komodo datadir path is not a directory.<br>It must be an absolute path to an existing folder that doesn\'t contain spaces and/or any special characters.', 'KOMODO_DATADIR_NOT_DIR': 'Komodo datadir path is not a directory.<br>It must be an absolute path to an existing folder that doesn\'t contain spaces and/or any special characters.',
'INVALID_ADDRESS': 'Invalid @template@ address', 'INVALID_ADDRESS': 'Invalid @template@ address',

Loading…
Cancel
Save