aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-04-19 11:33:51 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-05-17 23:27:39 +0800
commit924cc1fcf7de1896ac09bbe7a400d5ff5df0b50d (patch)
tree2a0f33c2ccd450bdd620b59df5510e5bbb670a9a /ui/app/actions.js
parent708422432c634ffbd4c73388f980c43f766b3355 (diff)
downloadtangerine-wallet-browser-924cc1fcf7de1896ac09bbe7a400d5ff5df0b50d.tar
tangerine-wallet-browser-924cc1fcf7de1896ac09bbe7a400d5ff5df0b50d.tar.gz
tangerine-wallet-browser-924cc1fcf7de1896ac09bbe7a400d5ff5df0b50d.tar.bz2
tangerine-wallet-browser-924cc1fcf7de1896ac09bbe7a400d5ff5df0b50d.tar.lz
tangerine-wallet-browser-924cc1fcf7de1896ac09bbe7a400d5ff5df0b50d.tar.xz
tangerine-wallet-browser-924cc1fcf7de1896ac09bbe7a400d5ff5df0b50d.tar.zst
tangerine-wallet-browser-924cc1fcf7de1896ac09bbe7a400d5ff5df0b50d.zip
Move setAccountLabel into PreferencesController
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r--ui/app/actions.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index 2d238b2f8..57bffb046 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -124,8 +124,8 @@ var actions = {
SHOW_PRIVATE_KEY: 'SHOW_PRIVATE_KEY',
showPrivateKey: showPrivateKey,
exportAccountComplete,
- SAVE_ACCOUNT_LABEL: 'SAVE_ACCOUNT_LABEL',
- saveAccountLabel: saveAccountLabel,
+ SET_ACCOUNT_LABEL: 'SET_ACCOUNT_LABEL',
+ setAccountLabel,
// tx conf screen
COMPLETED_TX: 'COMPLETED_TX',
TRANSACTION_ERROR: 'TRANSACTION_ERROR',
@@ -1598,13 +1598,13 @@ function showPrivateKey (key) {
}
}
-function saveAccountLabel (account, label) {
+function setAccountLabel (account, label) {
return (dispatch) => {
dispatch(actions.showLoadingIndication())
- log.debug(`background.saveAccountLabel`)
+ log.debug(`background.setAccountLabel`)
return new Promise((resolve, reject) => {
- background.saveAccountLabel(account, label, (err) => {
+ background.setAccountLabel(account, label, (err) => {
dispatch(actions.hideLoadingIndication())
if (err) {
@@ -1613,7 +1613,7 @@ function saveAccountLabel (account, label) {
}
dispatch({
- type: actions.SAVE_ACCOUNT_LABEL,
+ type: actions.SET_ACCOUNT_LABEL,
value: { account, label },
})