mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 20:39:08 +01:00
Add disclaimer consent action
This commit is contained in:
parent
5d90167bcc
commit
af48b94f6f
@ -12,6 +12,8 @@ var actions = {
|
|||||||
UPDATE_METAMASK_STATE: 'UPDATE_METAMASK_STATE',
|
UPDATE_METAMASK_STATE: 'UPDATE_METAMASK_STATE',
|
||||||
updateMetamaskState: updateMetamaskState,
|
updateMetamaskState: updateMetamaskState,
|
||||||
// intialize screen
|
// intialize screen
|
||||||
|
AGREE_TO_DISCLAIMER: 'AGREE_TO_DISCLAIMER',
|
||||||
|
agreeToDisclaimer: agreeToDisclaimer,
|
||||||
CREATE_NEW_VAULT_IN_PROGRESS: 'CREATE_NEW_VAULT_IN_PROGRESS',
|
CREATE_NEW_VAULT_IN_PROGRESS: 'CREATE_NEW_VAULT_IN_PROGRESS',
|
||||||
SHOW_CREATE_VAULT: 'SHOW_CREATE_VAULT',
|
SHOW_CREATE_VAULT: 'SHOW_CREATE_VAULT',
|
||||||
SHOW_RESTORE_VAULT: 'SHOW_RESTORE_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() {
|
function createNewVaultInProgress() {
|
||||||
return {
|
return {
|
||||||
type: actions.CREATE_NEW_VAULT_IN_PROGRESS,
|
type: actions.CREATE_NEW_VAULT_IN_PROGRESS,
|
||||||
|
Loading…
Reference in New Issue
Block a user