aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-12-05 10:00:11 +0800
committerDan <danjm.com@gmail.com>2017-12-05 11:06:54 +0800
commit9db00fa507c04180f6425cc3b1e3187afa193ab8 (patch)
tree7fd3e4cd85290bd03299f55f9af3335f538e09a8 /ui/app/actions.js
parent730d7f84ca8c202674677a6a6a94290e57ad9e3a (diff)
downloadtangerine-wallet-browser-9db00fa507c04180f6425cc3b1e3187afa193ab8.tar
tangerine-wallet-browser-9db00fa507c04180f6425cc3b1e3187afa193ab8.tar.gz
tangerine-wallet-browser-9db00fa507c04180f6425cc3b1e3187afa193ab8.tar.bz2
tangerine-wallet-browser-9db00fa507c04180f6425cc3b1e3187afa193ab8.tar.lz
tangerine-wallet-browser-9db00fa507c04180f6425cc3b1e3187afa193ab8.tar.xz
tangerine-wallet-browser-9db00fa507c04180f6425cc3b1e3187afa193ab8.tar.zst
tangerine-wallet-browser-9db00fa507c04180f6425cc3b1e3187afa193ab8.zip
Show user notifications after switch between UIs
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r--ui/app/actions.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index bdacf3092..bba2a014f 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -1515,6 +1515,9 @@ function updateTokenExchangeRate (token = '') {
}
function setFeatureFlag (feature, activated) {
+ const notificationType = activated
+ ? 'BETA_UI_NOTIFICATION_MODAL'
+ : 'OLD_UI_NOTIFICATION_MODAL'
return (dispatch) => {
dispatch(actions.showLoadingIndication())
return new Promise((resolve, reject) => {
@@ -1525,6 +1528,7 @@ function setFeatureFlag (feature, activated) {
reject(err)
}
dispatch(actions.updateFeatureFlags(updatedFeatureFlags))
+ dispatch(actions.showModal({ name: notificationType }))
resolve(updatedFeatureFlags)
})
})