persist balance hidden on local storage

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

View file

@ -1,6 +1,6 @@
'use strict';
angular.module('copayApp.controllers').controller('walletDetailsController', function($scope, $rootScope, $interval, $timeout, $filter, $log, $ionicModal, $ionicPopover, $ionicNavBarDelegate, $state, $stateParams, bwcError, profileService, lodash, configService, gettext, gettextCatalog, platformInfo, walletService, storageService, $ionicPopup) {
angular.module('copayApp.controllers').controller('walletDetailsController', function($scope, $rootScope, $interval, $timeout, $filter, $log, $ionicModal, $ionicPopover, $ionicNavBarDelegate, $state, $stateParams, bwcError, profileService, lodash, configService, gettext, gettextCatalog, platformInfo, walletService, $ionicPopup) {
var isCordova = platformInfo.isCordova;
var isWP = platformInfo.isWP;
@ -176,7 +176,9 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
}
$scope.hideToggle = function() {
profileService.setHideBalanceFlag(wallet.credentials.walletId);
profileService.setHideBalanceFlag(wallet.credentials.walletId, function(err) {
if (err) $log.error(err);
});
}
var currentTxHistoryPage;