diff options
author | Esteban MiƱo <efmino@uc.cl> | 2019-01-24 02:09:56 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2019-01-24 02:09:56 +0800 |
commit | 2d7c9b3dacc08c3d308100894b14d8c9f971e775 (patch) | |
tree | ddb6de9b5d8e42a5a2bcaf7cde3bdcd62f4a666a /ui/app/actions.js | |
parent | fba17d77de9e60de0e02e90dc6dbcbbf7454158a (diff) | |
download | tangerine-wallet-browser-2d7c9b3dacc08c3d308100894b14d8c9f971e775.tar tangerine-wallet-browser-2d7c9b3dacc08c3d308100894b14d8c9f971e775.tar.gz tangerine-wallet-browser-2d7c9b3dacc08c3d308100894b14d8c9f971e775.tar.bz2 tangerine-wallet-browser-2d7c9b3dacc08c3d308100894b14d8c9f971e775.tar.lz tangerine-wallet-browser-2d7c9b3dacc08c3d308100894b14d8c9f971e775.tar.xz tangerine-wallet-browser-2d7c9b3dacc08c3d308100894b14d8c9f971e775.tar.zst tangerine-wallet-browser-2d7c9b3dacc08c3d308100894b14d8c9f971e775.zip |
Prevent send to token warning (#6058)
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r-- | ui/app/actions.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js index 29cf4b2f2..c2622d0a0 100644 --- a/ui/app/actions.js +++ b/ui/app/actions.js @@ -191,6 +191,7 @@ var actions = { UPDATE_SEND_AMOUNT: 'UPDATE_SEND_AMOUNT', UPDATE_SEND_MEMO: 'UPDATE_SEND_MEMO', UPDATE_SEND_ERRORS: 'UPDATE_SEND_ERRORS', + UPDATE_SEND_WARNINGS: 'UPDATE_SEND_WARNINGS', UPDATE_MAX_MODE: 'UPDATE_MAX_MODE', UPDATE_SEND: 'UPDATE_SEND', CLEAR_SEND: 'CLEAR_SEND', @@ -211,6 +212,7 @@ var actions = { setMaxModeTo, updateSend, updateSendErrors, + updateSendWarnings, clearSend, setSelectedAddress, gasLoadingStarted, @@ -1068,6 +1070,13 @@ function updateSendErrors (errorObject) { } } +function updateSendWarnings (warningObject) { + return { + type: actions.UPDATE_SEND_WARNINGS, + value: warningObject, + } +} + function setSendTokenBalance (tokenBalance) { return { type: actions.UPDATE_SEND_TOKEN_BALANCE, |