aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
authortmashuang <thomas.b.huang@gmail.com>2018-05-22 05:57:57 +0800
committertmashuang <thomas.b.huang@gmail.com>2018-05-22 05:57:57 +0800
commit58b9afff4f3801d6d74b5311fb95060cc0a79cc1 (patch)
treec8d5a97f85fc7cf3c09a92949fdd615a082915cb /ui/app/actions.js
parent554a10f17e8e6b4bc79d3e5440295d280458717a (diff)
parent08d95bbafa3f952b960124c36958edbafa57cb3d (diff)
downloadtangerine-wallet-browser-58b9afff4f3801d6d74b5311fb95060cc0a79cc1.tar.gz
tangerine-wallet-browser-58b9afff4f3801d6d74b5311fb95060cc0a79cc1.tar.zst
tangerine-wallet-browser-58b9afff4f3801d6d74b5311fb95060cc0a79cc1.zip
Merge branch 'develop' into testing
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 },
})