aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-10-31 01:48:50 +0800
committerDan <danjm.com@gmail.com>2017-11-07 03:27:57 +0800
commit67bdfe87e31e695f8c4beab1659a3a4b764ccf24 (patch)
treebe7beef3beecccf6a4060b7f26e0d7ad5b0438b0 /ui/app/actions.js
parent9f70762434deb1c973665a76623838289e655f22 (diff)
downloadtangerine-wallet-browser-67bdfe87e31e695f8c4beab1659a3a4b764ccf24.tar
tangerine-wallet-browser-67bdfe87e31e695f8c4beab1659a3a4b764ccf24.tar.gz
tangerine-wallet-browser-67bdfe87e31e695f8c4beab1659a3a4b764ccf24.tar.bz2
tangerine-wallet-browser-67bdfe87e31e695f8c4beab1659a3a4b764ccf24.tar.lz
tangerine-wallet-browser-67bdfe87e31e695f8c4beab1659a3a4b764ccf24.tar.xz
tangerine-wallet-browser-67bdfe87e31e695f8c4beab1659a3a4b764ccf24.tar.zst
tangerine-wallet-browser-67bdfe87e31e695f8c4beab1659a3a4b764ccf24.zip
Token balance in send state; validating sufficient tokens, validation updates on 'from' switching.
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r--ui/app/actions.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index 5d3befa63..93cd40ed6 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -140,6 +140,7 @@ var actions = {
UPDATE_GAS_PRICE: 'UPDATE_GAS_PRICE',
UPDATE_GAS_TOTAL: 'UPDATE_GAS_TOTAL',
UPDATE_SEND_FROM: 'UPDATE_SEND_FROM',
+ UPDATE_SEND_TOKEN_BALANCE: 'UPDATE_SEND_TOKEN_BALANCE',
UPDATE_SEND_TO: 'UPDATE_SEND_TO',
UPDATE_SEND_AMOUNT: 'UPDATE_SEND_AMOUNT',
UPDATE_SEND_MEMO: 'UPDATE_SEND_MEMO',
@@ -148,6 +149,7 @@ var actions = {
updateGasLimit,
updateGasPrice,
updateGasTotal,
+ updateSendTokenBalance,
updateSendFrom,
updateSendTo,
updateSendAmount,
@@ -584,6 +586,13 @@ function updateGasTotal (gasTotal) {
}
}
+function updateSendTokenBalance (tokenBalance) {
+ return {
+ type: actions.UPDATE_SEND_TOKEN_BALANCE,
+ value: tokenBalance,
+ }
+}
+
function updateSendFrom (from) {
return {
type: actions.UPDATE_SEND_FROM,