21 changed files with 538 additions and 392 deletions
@ -1,39 +0,0 @@ |
|||
import React from 'react'; |
|||
import { translate } from '../../translate/translate'; |
|||
import { |
|||
|
|||
} from '../../actions/actionCreators'; |
|||
import Store from '../../store'; |
|||
|
|||
class AppSettings extends React.Component { |
|||
constructor(props) { |
|||
super(props); |
|||
//this.closeSyncOnlyModal = this.closeSyncOnlyModal.bind(this);
|
|||
} |
|||
|
|||
render() { |
|||
/*if (this.props && this.props.SyncOnly.display) { |
|||
return ( |
|||
<div> |
|||
<div className="modal show sync-only-forks" aria-hidden="false" role="dialog"> |
|||
<div className="modal-dialog modal-center modal-lg"> |
|||
<div className="modal-content"> |
|||
<div className="modal-body" style={{height: '590px'}}> |
|||
{this.renderForksList()} |
|||
</div> |
|||
<div className="modal-footer"> |
|||
<button type="button" className="btn btn-default" onClick={this.closeSyncOnlyModal}>Close</button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div className="modal-backdrop show in"></div> |
|||
</div> |
|||
); |
|||
} else { |
|||
return null; |
|||
}*/ |
|||
} |
|||
} |
|||
|
|||
export default AppSettings; |
@ -1,30 +0,0 @@ |
|||
export function edexRemoveTXID(_obj, txidArray) { |
|||
const txidToStr = txidArray.join(':'); |
|||
|
|||
console.log(txidToStr); |
|||
if (_obj, _obj.basilisk) { |
|||
if (Object.keys(_obj.basilisk).length === 0) { |
|||
console.log('no coin nodes to parse'); |
|||
} else { |
|||
for (var key in _obj.basilisk) { |
|||
for (var coinAddr in _obj.basilisk[key]) { |
|||
if (_obj.basilisk[key][coinAddr] !== 'addresses') { |
|||
if (_obj.basilisk[key][coinAddr].refresh && |
|||
_obj.basilisk[key][coinAddr].refresh.data && |
|||
_obj.basilisk[key][coinAddr].refresh.data.length > 0) { |
|||
for (var i = 0; i < _obj.basilisk[key][coinAddr].refresh.data.length; i++) { |
|||
if (txidToStr.indexOf(_obj.basilisk[key][coinAddr].refresh.data[i].txid) > -1) { |
|||
_obj.basilisk[key][coinAddr].refresh.data.splice(i, 1); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} else { |
|||
console.log('basilisk node is missing'); |
|||
} |
|||
|
|||
return _obj; |
|||
} |
Loading…
Reference in new issue