Browse Source

Merge pull request #693 from mrfelton/fix/loading-screen-during-genseed

fix(ux): show loading bolt while seed is generated
renovate/lint-staged-8.x
JimmyMow 7 years ago
committed by GitHub
parent
commit
173ce414b0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/reducers/onboarding.js

4
app/reducers/onboarding.js

@ -283,6 +283,7 @@ export const startLndError = (event, errors) => (dispatch, getState) => {
export const walletUnlockerGrpcActive = () => dispatch => {
dispatch({ type: LND_STARTED })
ipcRenderer.send('walletUnlocker', { msg: 'genSeed' })
dispatch({ type: FETCH_SEED })
}
export const createWallet = () => dispatch => {
@ -357,7 +358,8 @@ const ACTION_HANDLERS = {
[SET_AUTOPILOT]: (state, { autopilot }) => ({ ...state, autopilot }),
[SET_HAS_SEED]: (state, { hasSeed }) => ({ ...state, hasSeed }),
[FETCH_SEED]: state => ({ ...state, fetchingSeed: true }),
[SET_HAS_SEED]: (state, { hasSeed }) => ({ ...state, hasSeed, fetchingSeed: false }),
[SET_SEED]: (state, { seed }) => ({ ...state, seed, fetchingSeed: false }),
[SET_RE_ENTER_SEED_INDEXES]: (state, { seedIndexesArr }) => ({ ...state, seedIndexesArr }),

Loading…
Cancel
Save