rename function

This commit is contained in:
Gabriel Bazán 2016-08-31 12:18:04 -03:00
commit e63b8cc1e2
2 changed files with 2 additions and 2 deletions

View file

@ -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);
});
}

View file

@ -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);
}