diff options
author | Dan J Miller <danjm.com@gmail.com> | 2017-12-21 02:22:50 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@users.noreply.github.com> | 2017-12-21 02:22:50 +0800 |
commit | bccbf14b39ab2b1670c9c30b276404fe4f949cd7 (patch) | |
tree | 64ca0324e8695a85460158aade2a7bd135dcb419 /ui/app/actions.js | |
parent | 109e4e5d96e31b52fcfdb22620bff113107d000c (diff) | |
download | tangerine-wallet-browser-bccbf14b39ab2b1670c9c30b276404fe4f949cd7.tar tangerine-wallet-browser-bccbf14b39ab2b1670c9c30b276404fe4f949cd7.tar.gz tangerine-wallet-browser-bccbf14b39ab2b1670c9c30b276404fe4f949cd7.tar.bz2 tangerine-wallet-browser-bccbf14b39ab2b1670c9c30b276404fe4f949cd7.tar.lz tangerine-wallet-browser-bccbf14b39ab2b1670c9c30b276404fe4f949cd7.tar.xz tangerine-wallet-browser-bccbf14b39ab2b1670c9c30b276404fe4f949cd7.tar.zst tangerine-wallet-browser-bccbf14b39ab2b1670c9c30b276404fe4f949cd7.zip |
[NewUI] Hide UI toggle in mascara (#2772)
* Hides old-UI on mascara.
* Improve code clarity in select-app.js
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r-- | ui/app/actions.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js index ed0518184..e694152a2 100644 --- a/ui/app/actions.js +++ b/ui/app/actions.js @@ -1523,10 +1523,7 @@ function updateTokenExchangeRate (token = '') { } } -function setFeatureFlag (feature, activated) { - const notificationType = activated - ? 'BETA_UI_NOTIFICATION_MODAL' - : 'OLD_UI_NOTIFICATION_MODAL' +function setFeatureFlag (feature, activated, notificationType) { return (dispatch) => { dispatch(actions.showLoadingIndication()) return new Promise((resolve, reject) => { @@ -1537,7 +1534,7 @@ function setFeatureFlag (feature, activated) { reject(err) } dispatch(actions.updateFeatureFlags(updatedFeatureFlags)) - dispatch(actions.showModal({ name: notificationType })) + notificationType && dispatch(actions.showModal({ name: notificationType })) resolve(updatedFeatureFlags) }) }) |