aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-10-13 01:29:03 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-10-18 09:10:09 +0800
commitac43872c1a1468057974648c8ae90bf1edd708d7 (patch)
treedcd98d338d99b97dc91ac7240326e9b4a6a50841 /ui/app/actions.js
parent7caa9142235cc0eca20d638a066d666d8cfaabee (diff)
downloadtangerine-wallet-browser-ac43872c1a1468057974648c8ae90bf1edd708d7.tar
tangerine-wallet-browser-ac43872c1a1468057974648c8ae90bf1edd708d7.tar.gz
tangerine-wallet-browser-ac43872c1a1468057974648c8ae90bf1edd708d7.tar.bz2
tangerine-wallet-browser-ac43872c1a1468057974648c8ae90bf1edd708d7.tar.lz
tangerine-wallet-browser-ac43872c1a1468057974648c8ae90bf1edd708d7.tar.xz
tangerine-wallet-browser-ac43872c1a1468057974648c8ae90bf1edd708d7.tar.zst
tangerine-wallet-browser-ac43872c1a1468057974648c8ae90bf1edd708d7.zip
Enable send-v2 functionality.
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r--ui/app/actions.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index b0ef7d0a3..9744bf67f 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -137,6 +137,7 @@ var actions = {
UPDATE_GAS_PRICE: 'UPDATE_GAS_PRICE',
updateGasLimit,
updateGasPrice,
+ setSelectedAddress,
// app messages
confirmSeedWords: confirmSeedWords,
showAccountDetail: showAccountDetail,
@@ -699,6 +700,19 @@ function setSelectedToken (tokenAddress) {
}
}
+function setSelectedAddress (address) {
+ return (dispatch) => {
+ dispatch(actions.showLoadingIndication())
+ log.debug(`background.setSelectedAddress`)
+ background.setSelectedAddress(address, (err) => {
+ dispatch(actions.hideLoadingIndication())
+ if (err) {
+ return dispatch(actions.displayWarning(err.message))
+ }
+ })
+ }
+}
+
function showAccountDetail (address) {
return (dispatch) => {
dispatch(actions.showLoadingIndication())