diff options
Add disclaimer consent action
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r-- | ui/app/actions.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js index dd38c5f0a..4a1460040 100644 --- a/ui/app/actions.js +++ b/ui/app/actions.js @@ -12,6 +12,8 @@ var actions = { UPDATE_METAMASK_STATE: 'UPDATE_METAMASK_STATE', updateMetamaskState: updateMetamaskState, // intialize screen + AGREE_TO_DISCLAIMER: 'AGREE_TO_DISCLAIMER', + agreeToDisclaimer: agreeToDisclaimer, CREATE_NEW_VAULT_IN_PROGRESS: 'CREATE_NEW_VAULT_IN_PROGRESS', SHOW_CREATE_VAULT: 'SHOW_CREATE_VAULT', SHOW_RESTORE_VAULT: 'SHOW_RESTORE_VAULT', @@ -313,6 +315,17 @@ function showInitializeMenu() { } } +function agreeToDisclaimer() { + return (dispatch) => { + dispatch(this.showLoadingIndication()) + _accountManager.agreeToDisclaimer((err) { + dispatch({ + type: this.AGREE_TO_DISCLAIMER, + }) + }) + } +} + function createNewVaultInProgress() { return { type: actions.CREATE_NEW_VAULT_IN_PROGRESS, |