From d79b54ff35bf71e8af39b4b0d55af0faccc8b387 Mon Sep 17 00:00:00 2001 From: Daniel Ternyak Date: Thu, 27 Apr 2017 01:13:33 -0500 Subject: [PATCH] add cases for downloaded file and continue to paper actions --- common/reducers/generateWallet.js | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/common/reducers/generateWallet.js b/common/reducers/generateWallet.js index c06c4aac..f8566074 100644 --- a/common/reducers/generateWallet.js +++ b/common/reducers/generateWallet.js @@ -1,10 +1,17 @@ -import {GENERATE_WALLET_SHOW_PASSWORD, GENERATE_WALLET_FILE} from "actions/generateWallet"; +import { + GENERATE_WALLET_SHOW_PASSWORD, + GENERATE_WALLET_FILE, + GENERATE_WALLET_HAS_DOWNLOADED_FILE, + GENERATE_WALLET_CONTINUE_TO_PAPER + +} from "actions/generateWallet"; const initialState = { showPassword: false, generateWalletFile: false, - generateWalletFileConfirm: false + hasDownloadedWalletFile: false, + canProceedToPaper: false } export function generateWallet(state = initialState, action) { @@ -23,6 +30,20 @@ export function generateWallet(state = initialState, action) { } } + case GENERATE_WALLET_HAS_DOWNLOADED_FILE: { + return { + ...state, + hasDownloadedWalletFile: true + } + } + + case GENERATE_WALLET_CONTINUE_TO_PAPER: { + return { + ...state, + canProceedToPaper: true + } + } + default: return state }