|
|
|
@ -55,6 +55,8 @@ var actions = { |
|
|
|
|
SHOW_CONF_MSG_PAGE: 'SHOW_CONF_MSG_PAGE', |
|
|
|
|
REVEAL_ACCOUNT: 'REVEAL_ACCOUNT', |
|
|
|
|
revealAccount: revealAccount, |
|
|
|
|
SET_CURRENT_FIAT: 'SET_CURRENT_FIAT', |
|
|
|
|
setCurrentFiat: setCurrentFiat, |
|
|
|
|
// account detail screen
|
|
|
|
|
SHOW_SEND_PAGE: 'SHOW_SEND_PAGE', |
|
|
|
|
showSendPage: showSendPage, |
|
|
|
@ -207,6 +209,18 @@ function revealAccount () { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function setCurrentFiat (fiat) { |
|
|
|
|
return (dispatch) => { |
|
|
|
|
dispatch(this.showLoadingIndication()) |
|
|
|
|
_accountManager.setCurrentFiat(fiat, (err) => { |
|
|
|
|
dispatch(this.hideLoadingIndication()) |
|
|
|
|
dispatch({ |
|
|
|
|
type: this.SET_CURRENT_FIAT, |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function signMsg (msgData) { |
|
|
|
|
return (dispatch) => { |
|
|
|
|
dispatch(actions.showLoadingIndication()) |
|
|
|
|