rename function
This commit is contained in:
parent
a2261ae572
commit
e63b8cc1e2
2 changed files with 2 additions and 2 deletions
|
|
@ -176,7 +176,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
|||
}
|
||||
|
||||
$scope.hideToggle = function() {
|
||||
profileService.setHideBalanceFlag(wallet.credentials.walletId, function(err) {
|
||||
profileService.toggleHideBalanceFlag(wallet.credentials.walletId, function(err) {
|
||||
if (err) $log.error(err);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -738,7 +738,7 @@ angular.module('copayApp.services')
|
|||
}, 'createdOn']);
|
||||
};
|
||||
|
||||
root.setHideBalanceFlag = function(walletId) {
|
||||
root.toggleHideBalanceFlag = function(walletId, cb) {
|
||||
root.wallet[walletId].balanceHidden = !root.wallet[walletId].balanceHidden;
|
||||
storageService.setHideBalanceFlag(walletId, root.wallet[walletId].balanceHidden.toString(), cb);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue