Merge pull request #2429 from cmgustavo/bug/txsproposals-01

Update tx proposals after change the unit
This commit is contained in:
Matias Alejo Garcia 2015-03-06 11:55:21 -03:00
commit 3197e9449b
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
'use strict';
angular.module('copayApp.controllers').controller('MoreController',
function($scope, $rootScope, $location, $filter, $timeout, balanceService, notification, rateService, backupService, identityService, isMobile, isCordova, go) {
function($scope, $rootScope, $location, $filter, $timeout, balanceService, notification, rateService, backupService, identityService, isMobile, isCordova, go, pendingTxsService) {
var w = $rootScope.wallet;
var max = $rootScope.quotaPerItem;
$scope.isSafari = isMobile.Safari();
@ -87,6 +87,7 @@ angular.module('copayApp.controllers').controller('MoreController',
});
notification.success('Success', $filter('translate')('settings successfully updated'));
balanceService.update(w, function() {
pendingTxsService.update();
$rootScope.$digest();
});
};