From e63b8cc1e2928fbc217db17c377dec0208621401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Wed, 31 Aug 2016 12:18:04 -0300 Subject: [PATCH] rename function --- src/js/controllers/walletDetails.js | 2 +- src/js/services/profileService.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/controllers/walletDetails.js b/src/js/controllers/walletDetails.js index bfe7b6730..4422a5d22 100644 --- a/src/js/controllers/walletDetails.js +++ b/src/js/controllers/walletDetails.js @@ -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); }); } diff --git a/src/js/services/profileService.js b/src/js/services/profileService.js index 9397962d4..1d6e5ffdb 100644 --- a/src/js/services/profileService.js +++ b/src/js/services/profileService.js @@ -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); }