@ -11,6 +11,9 @@ import {
} from '../../actions/actionCreators' ;
import Store from '../../store' ;
import WalletsBasiliskRefresh from './walletsBasiliskRefresh' ;
import WalletsBasiliskConnection from './walletsBasiliskConnection' ;
import { SocketProvider } from 'socket.io-react' ;
import io from 'socket.io-client' ;
@ -53,7 +56,7 @@ class WalletsData extends React.Component {
} ) ) ;
}
if ( data && data . message && data . message . shepherd . method && data . message . shepherd . method === 'cache-one' && data . message . shepherd . status === 'done' ) {
//_totalStackLength = _currentStackLength = 0;
Store . dispatch ( basiliskRefresh ( false ) ) ;
}
}
@ -323,6 +326,9 @@ class WalletsData extends React.Component {
render ( ) {
if ( this . props && this . props . ActiveCoin && this . props . ActiveCoin . coin && this . props . ActiveCoin . mode !== 'native' && ! this . props . ActiveCoin . send && ! this . props . ActiveCoin . receive ) {
return (
< span >
< WalletsBasiliskRefresh { ... this . props } / >
< WalletsBasiliskConnection { ... this . props } / >
< div data - edexcoin = "COIN" id = "edexcoin_dashboardinfo" >
< div className = "col-xs-12 margin-top-20" >
< div className = "panel nav-tabs-horizontal" >
@ -330,9 +336,11 @@ class WalletsData extends React.Component {
< div className = "col-xlg-12 col-lg-12 col-sm-12 col-xs-12 edexcoin_dashoard_section_main_div" >
< div id = "edexcoin_txhistory" className = "panel" >
< header className = "panel-heading" style = { { zIndex : '10' } } >
Sockets : { this . state . currentStackLength } / { this . state . totalStackLength }
< div className = { this . props . ActiveCoin . mode === 'basilisk' ? 'panel-actions' : 'panel-actions hide' } >
< a href = "javascript:void(0)" className = "dropdown-toggle white btn-xs btn-info btn_refresh_edexcoin_dashboard" data - edexcoin = "COIN" aria - expanded = "false" role = "button" onClick = { this . refreshTxList } >
< div className = { this . state . currentStackLength === 1 || ( this . state . currentStackLength === 0 && this . state . totalStackLength === 0 ) ? 'hide' : '' } >
< strong > Processing requests : < /strong> {this.state.currentStackLength} / { this . state . totalStackLength }
< / d i v >
< a href = "javascript:void(0)" className = "dropdown-toggle white btn-xs btn-info btn_refresh_edexcoin_dashboard margin-right-10" data - edexcoin = "COIN" aria - expanded = "false" role = "button" onClick = { this . refreshTxList } >
< i className = "icon fa-refresh margin-right-10" aria - hidden = "true" > < / i > { t r a n s l a t e ( ' I N D E X . R E F R E S H ' ) }
< / a >
< div className = { this . state . basiliskActionsMenu ? 'dropdown open' : 'dropdown' } onClick = { this . toggleBasiliskActionsMenu } >
@ -420,6 +428,7 @@ class WalletsData extends React.Component {
< / d i v >
< / d i v >
< / d i v >
< / s p a n >
) ;
} else {
return null ;