Browse Source

outdated basilisk modals leftover cleanup

all-modes
pbca26 8 years ago
parent
commit
68cfa71bc0
  1. 28
      react/src/actions/actionCreators.js
  2. 10
      react/src/components/dashboard/sendCoin/sendCoin.js
  3. 10
      react/src/components/dashboard/walletsData/walletsData.js

28
react/src/actions/actionCreators.js

@ -107,34 +107,6 @@ export function toggleDashboardTxInfoModal(display, txIndex) {
} }
} }
export function basiliskConnectionState(display, json) {
return {
type: BASILISK_CONNECTION,
basiliskConnection: display,
progress: json,
}
}
export function basiliskRefreshState(display, json) {
return {
type: BASILISK_REFRESH,
basiliskRefresh: display,
progress: json,
}
}
export function basiliskRefresh(display) {
return dispatch => {
dispatch(basiliskRefreshState(display));
}
}
export function basiliskConnection(display) {
return dispatch => {
dispatch(basiliskConnectionState(display));
}
}
export function syncingNativeModeState(display, json) { export function syncingNativeModeState(display, json) {
return { return {
type: SYNCING_NATIVE_MODE, type: SYNCING_NATIVE_MODE,

10
react/src/components/dashboard/sendCoin/sendCoin.js

@ -10,7 +10,6 @@ import {
import { import {
resolveOpenAliasAddress, resolveOpenAliasAddress,
triggerToaster, triggerToaster,
basiliskRefresh,
shepherdGroomPostPromise, shepherdGroomPostPromise,
edexGetTransaction, edexGetTransaction,
getCacheFile, getCacheFile,
@ -128,13 +127,6 @@ class SendCoin extends React.Component {
currentStackLength: data.message.shepherd.iguanaAPI.currentStackLength, currentStackLength: data.message.shepherd.iguanaAPI.currentStackLength,
})); }));
} }
if (data &&
data.message &&
data.message.shepherd.method &&
data.message.shepherd.method === 'cache-one' &&
data.message.shepherd.status === 'done') {
Store.dispatch(basiliskRefresh(false));
}
} }
_fetchNewUTXOData() { _fetchNewUTXOData() {
@ -893,7 +885,7 @@ const mapStateToProps = (state) => {
} }
}; };
}; };
export default connect(mapStateToProps)(SendCoin); export default connect(mapStateToProps)(SendCoin);

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

@ -5,8 +5,6 @@ import { sortByDate } from '../../../util/sort';
import { formatValue } from '../../../util/formatValue'; import { formatValue } from '../../../util/formatValue';
import Config from '../../../config'; import Config from '../../../config';
import { import {
basiliskRefresh,
basiliskConnection,
toggleDashboardTxInfoModal, toggleDashboardTxInfoModal,
getBasiliskTransactionsList, getBasiliskTransactionsList,
changeMainBasiliskAddress, changeMainBasiliskAddress,
@ -235,13 +233,6 @@ class WalletsData extends React.Component {
currentStackLength: data.message.shepherd.iguanaAPI.currentStackLength, currentStackLength: data.message.shepherd.iguanaAPI.currentStackLength,
}); });
} }
if (data &&
data.message &&
data.message.shepherd.method &&
data.message.shepherd.method === 'cache-one' &&
data.message.shepherd.status === 'done') {
Store.dispatch(basiliskRefresh(false));
}
if (Object.keys(stateObj).length) { if (Object.keys(stateObj).length) {
this.setState(Object.assign({}, this.state, stateObj)); this.setState(Object.assign({}, this.state, stateObj));
@ -657,7 +648,6 @@ const mapStateToProps = (state) => {
Dashboard: { Dashboard: {
activeHandle: state.Dashboard.activeHandle, activeHandle: state.Dashboard.activeHandle,
displayViewCacheModal: state.Dashboard.displayViewCacheModal, displayViewCacheModal: state.Dashboard.displayViewCacheModal,
basiliskConnection: state.Dashboard.basiliskConnection,
progress: state.Dashboard.progress, progress: state.Dashboard.progress,
}, },
Main: { Main: {

Loading…
Cancel
Save