aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-10-21 10:05:22 +0800
committerDan <danjm.com@gmail.com>2017-10-24 02:33:48 +0800
commitb96ba5522993915cf809ba2f438c2c5a9c776e1f (patch)
tree46023cf7f7c9241906b4cf1b621cc8aa58eb8b68 /ui/app/actions.js
parent8f3b762461ada222f82089e686a61183dd167428 (diff)
downloadtangerine-wallet-browser-b96ba5522993915cf809ba2f438c2c5a9c776e1f.tar
tangerine-wallet-browser-b96ba5522993915cf809ba2f438c2c5a9c776e1f.tar.gz
tangerine-wallet-browser-b96ba5522993915cf809ba2f438c2c5a9c776e1f.tar.bz2
tangerine-wallet-browser-b96ba5522993915cf809ba2f438c2c5a9c776e1f.tar.lz
tangerine-wallet-browser-b96ba5522993915cf809ba2f438c2c5a9c776e1f.tar.xz
tangerine-wallet-browser-b96ba5522993915cf809ba2f438c2c5a9c776e1f.tar.zst
tangerine-wallet-browser-b96ba5522993915cf809ba2f438c2c5a9c776e1f.zip
Clear send state on cancelling and signing.
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r--ui/app/actions.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index 4c83f95b4..169fac78a 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -143,6 +143,7 @@ var actions = {
UPDATE_SEND_AMOUNT: 'UPDATE_SEND_AMOUNT',
UPDATE_SEND_MEMO: 'UPDATE_SEND_MEMO',
UPDATE_SEND_ERRORS: 'UPDATE_SEND_ERRORS',
+ CLEAR_SEND: 'CLEAR_SEND',
updateGasLimit,
updateGasPrice,
updateGasTotal,
@@ -151,6 +152,7 @@ var actions = {
updateSendAmount,
updateSendMemo,
updateSendErrors,
+ clearSend,
setSelectedAddress,
// app messages
confirmSeedWords: confirmSeedWords,
@@ -577,13 +579,18 @@ function updateSendMemo (memo) {
}
function updateSendErrors (error) {
- console.log(`updateSendErrors error`, error);
return {
type: actions.UPDATE_SEND_ERRORS,
value: error,
}
}
+function clearSend () {
+ return {
+ type: actions.CLEAR_SEND
+ }
+}
+
function sendTx (txData) {
log.info(`actions - sendTx: ${JSON.stringify(txData.txParams)}`)