diff options
author | Thomas Huang <tmashuang@users.noreply.github.com> | 2017-11-29 03:58:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-29 03:58:06 +0800 |
commit | 2b1f2557c7dbd589724fd690ec72f789f9650e3c (patch) | |
tree | 44ad09f1b666dc6ddae0fdc0bc9823de9126bc18 /ui/app/actions.js | |
parent | 9a3ca5d5022d30415b8f5b32b148293689cfc817 (diff) | |
parent | f131468353aa518b8fc178cd591bfc7ab5bdc32c (diff) | |
download | tangerine-wallet-browser-2b1f2557c7dbd589724fd690ec72f789f9650e3c.tar tangerine-wallet-browser-2b1f2557c7dbd589724fd690ec72f789f9650e3c.tar.gz tangerine-wallet-browser-2b1f2557c7dbd589724fd690ec72f789f9650e3c.tar.bz2 tangerine-wallet-browser-2b1f2557c7dbd589724fd690ec72f789f9650e3c.tar.lz tangerine-wallet-browser-2b1f2557c7dbd589724fd690ec72f789f9650e3c.tar.xz tangerine-wallet-browser-2b1f2557c7dbd589724fd690ec72f789f9650e3c.tar.zst tangerine-wallet-browser-2b1f2557c7dbd589724fd690ec72f789f9650e3c.zip |
Merge pull request #2615 from jpclark/NewUI-flat
Provide blockie identicon option
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r-- | ui/app/actions.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js index 2ca62c41f..e79f4373e 100644 --- a/ui/app/actions.js +++ b/ui/app/actions.js @@ -234,6 +234,9 @@ var actions = { toggleAccountMenu, useEtherscanProvider, + + SET_USE_BLOCKIE: 'SET_USE_BLOCKIE', + setUseBlockie, } module.exports = actions @@ -1550,3 +1553,20 @@ function toggleAccountMenu () { type: actions.TOGGLE_ACCOUNT_MENU, } } + +function setUseBlockie (val) { + return (dispatch) => { + dispatch(actions.showLoadingIndication()) + log.debug(`background.setUseBlockie`) + background.setUseBlockie(val, (err) => { + dispatch(actions.hideLoadingIndication()) + if (err) { + return dispatch(actions.displayWarning(err.message)) + } + }) + dispatch({ + type: actions.SET_USE_BLOCKIE, + value: val, + }) + } +} |