aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-06-17 06:58:45 +0800
committerDan Finlay <dan@danfinlay.com>2016-06-17 06:58:45 +0800
commitaf48b94f6fa5024e6ec07dc654e6c23d1ebd5b69 (patch)
tree32c2218ed8921868821c630fb31413e285001792 /ui/app
parent5d90167bcc8af12c8cbd9dd64174352f758c8409 (diff)
downloadtangerine-wallet-browser-af48b94f6fa5024e6ec07dc654e6c23d1ebd5b69.tar
tangerine-wallet-browser-af48b94f6fa5024e6ec07dc654e6c23d1ebd5b69.tar.gz
tangerine-wallet-browser-af48b94f6fa5024e6ec07dc654e6c23d1ebd5b69.tar.bz2
tangerine-wallet-browser-af48b94f6fa5024e6ec07dc654e6c23d1ebd5b69.tar.lz
tangerine-wallet-browser-af48b94f6fa5024e6ec07dc654e6c23d1ebd5b69.tar.xz
tangerine-wallet-browser-af48b94f6fa5024e6ec07dc654e6c23d1ebd5b69.tar.zst
tangerine-wallet-browser-af48b94f6fa5024e6ec07dc654e6c23d1ebd5b69.zip
Add disclaimer consent action
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/actions.js13
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,