aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/ducks/gas.duck.js
diff options
context:
space:
mode:
authorDan Miller <danjm.com@gmail.com>2018-09-21 00:06:23 +0800
committerDan Miller <danjm.com@gmail.com>2018-12-04 11:36:04 +0800
commitb95eb30ec60e4d169a61d987ad86fe333aa49523 (patch)
tree3256fc562d35022559d068f223bdedfd80248149 /ui/app/ducks/gas.duck.js
parent5354325fab9b9ab3091e3c49e6b940fa713d1799 (diff)
downloadtangerine-wallet-browser-b95eb30ec60e4d169a61d987ad86fe333aa49523.tar.gz
tangerine-wallet-browser-b95eb30ec60e4d169a61d987ad86fe333aa49523.tar.zst
tangerine-wallet-browser-b95eb30ec60e4d169a61d987ad86fe333aa49523.zip
Adds redesign for the customize gas advanced tab.
Diffstat (limited to 'ui/app/ducks/gas.duck.js')
-rw-r--r--ui/app/ducks/gas.duck.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/app/ducks/gas.duck.js b/ui/app/ducks/gas.duck.js
index 7f18b2272..558047cf7 100644
--- a/ui/app/ducks/gas.duck.js
+++ b/ui/app/ducks/gas.duck.js
@@ -4,6 +4,7 @@ import { clone } from 'ramda'
const BASIC_GAS_ESTIMATE_LOADING_FINISHED = 'metamask/gas/BASIC_GAS_ESTIMATE_LOADING_FINISHED'
const BASIC_GAS_ESTIMATE_LOADING_STARTED = 'metamask/gas/BASIC_GAS_ESTIMATE_LOADING_STARTED'
const RESET_CUSTOM_GAS_STATE = 'metamask/gas/RESET_CUSTOM_GAS_STATE'
+const RESET_CUSTOM_DATA = 'metamask/gas/RESET_CUSTOM_DATA'
const SET_BASIC_GAS_ESTIMATE_DATA = 'metamask/gas/SET_BASIC_GAS_ESTIMATE_DATA'
const SET_CUSTOM_GAS_ERRORS = 'metamask/gas/SET_CUSTOM_GAS_ERRORS'
const SET_CUSTOM_GAS_LIMIT = 'metamask/gas/SET_CUSTOM_GAS_LIMIT'
@@ -85,6 +86,11 @@ export default function reducer ({ gas: gasState = initState }, action = {}) {
...action.value,
},
}
+ case RESET_CUSTOM_DATA:
+ return {
+ ...newState,
+ customData: clone(initState.customData),
+ }
case RESET_CUSTOM_GAS_STATE:
return clone(initState)
default:
@@ -187,3 +193,7 @@ export function setCustomGasErrors (newErrors) {
export function resetCustomGasState () {
return { type: RESET_CUSTOM_GAS_STATE }
}
+
+export function resetCustomData () {
+ return { type: RESET_CUSTOM_DATA }
+}