aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
authorEsteban MIno <efmino@uc.cl>2018-08-08 05:40:45 +0800
committerEsteban MIno <efmino@uc.cl>2018-08-08 05:40:45 +0800
commit00d1f6fec5457f05fb2e6aec1300dd2dbef51ec1 (patch)
tree4a5a84a27f7f3038769236ecd7846bbd8a5fdae7 /ui/app
parent1f8a808a008fc4caaf7cb399d28bcbce3fa58e25 (diff)
downloadtangerine-wallet-browser-00d1f6fec5457f05fb2e6aec1300dd2dbef51ec1.tar
tangerine-wallet-browser-00d1f6fec5457f05fb2e6aec1300dd2dbef51ec1.tar.gz
tangerine-wallet-browser-00d1f6fec5457f05fb2e6aec1300dd2dbef51ec1.tar.bz2
tangerine-wallet-browser-00d1f6fec5457f05fb2e6aec1300dd2dbef51ec1.tar.lz
tangerine-wallet-browser-00d1f6fec5457f05fb2e6aec1300dd2dbef51ec1.tar.xz
tangerine-wallet-browser-00d1f6fec5457f05fb2e6aec1300dd2dbef51ec1.tar.zst
tangerine-wallet-browser-00d1f6fec5457f05fb2e6aec1300dd2dbef51ec1.zip
watch token on old ui
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/actions.js9
-rw-r--r--ui/app/reducers/app.js9
2 files changed, 18 insertions, 0 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index 7b414a038..04ad344cf 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -221,7 +221,9 @@ var actions = {
SET_PROVIDER_TYPE: 'SET_PROVIDER_TYPE',
showConfigPage,
SHOW_ADD_TOKEN_PAGE: 'SHOW_ADD_TOKEN_PAGE',
+ SHOW_ADD_SUGGESTED_TOKEN_PAGE: 'SHOW_ADD_SUGGESTED_TOKEN_PAGE',
showAddTokenPage,
+ showAddSuggestedTokenPage,
addToken,
addTokens,
removeToken,
@@ -1559,6 +1561,13 @@ function showAddTokenPage (transitionForward = true) {
}
}
+function showAddSuggestedTokenPage (transitionForward = true) {
+ return {
+ type: actions.SHOW_ADD_SUGGESTED_TOKEN_PAGE,
+ value: transitionForward,
+ }
+}
+
function addToken (address, symbol, decimals) {
return (dispatch) => {
dispatch(actions.showLoadingIndication())
diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js
index 50d8bcba7..f76b73132 100644
--- a/ui/app/reducers/app.js
+++ b/ui/app/reducers/app.js
@@ -196,6 +196,15 @@ function reduceApp (state, action) {
transForward: action.value,
})
+ case actions.SHOW_ADD_SUGGESTED_TOKEN_PAGE:
+ return extend(appState, {
+ currentView: {
+ name: 'add-suggested-token',
+ context: appState.currentView.context,
+ },
+ transForward: action.value,
+ })
+
case actions.SHOW_IMPORT_PAGE:
return extend(appState, {
currentView: {