diff options
author | Dan <danjm.com@gmail.com> | 2017-11-17 02:14:25 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-12-07 13:15:39 +0800 |
commit | 2e9137dddd4abd07cc45caa670f09bdc9559bbbb (patch) | |
tree | 8df2d0042aeefb678445d65b32476405253efa7d /ui/app/reducers | |
parent | 373f8b72d048d84f537d97d87c7f106e0b8db087 (diff) | |
download | tangerine-wallet-browser-2e9137dddd4abd07cc45caa670f09bdc9559bbbb.tar tangerine-wallet-browser-2e9137dddd4abd07cc45caa670f09bdc9559bbbb.tar.gz tangerine-wallet-browser-2e9137dddd4abd07cc45caa670f09bdc9559bbbb.tar.bz2 tangerine-wallet-browser-2e9137dddd4abd07cc45caa670f09bdc9559bbbb.tar.lz tangerine-wallet-browser-2e9137dddd4abd07cc45caa670f09bdc9559bbbb.tar.xz tangerine-wallet-browser-2e9137dddd4abd07cc45caa670f09bdc9559bbbb.tar.zst tangerine-wallet-browser-2e9137dddd4abd07cc45caa670f09bdc9559bbbb.zip |
Update max amount behaviour to meet new specs.
Diffstat (limited to 'ui/app/reducers')
-rw-r--r-- | ui/app/reducers/metamask.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/app/reducers/metamask.js b/ui/app/reducers/metamask.js index fb53bbaef..98207f23b 100644 --- a/ui/app/reducers/metamask.js +++ b/ui/app/reducers/metamask.js @@ -33,6 +33,7 @@ function reduceMetamask (state, action) { amount: '0x0', memo: '', errors: {}, + maxModeOn: false, editingTransactionId: null, }, coinOptions: {}, @@ -258,6 +259,14 @@ function reduceMetamask (state, action) { }, }) + case actions.UPDATE_MAX_MODE: + return extend(metamaskState, { + send: { + ...metamaskState.send, + maxModeOn: action.value, + }, + }) + case actions.UPDATE_SEND: return extend(metamaskState, { send: { |