Fix delay of listing wallets when payment intent
This commit is contained in:
parent
5d8b83823a
commit
39ea2a226b
1 changed files with 6 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('PaymentIntentController', function($rootScope, $scope, $modal, $location, balanceService) {
|
||||
angular.module('copayApp.controllers').controller('PaymentIntentController', function($rootScope, $scope, $modal, $location, $timeout, balanceService) {
|
||||
|
||||
$rootScope.title = 'Payment intent';
|
||||
|
||||
|
|
@ -22,8 +22,11 @@ angular.module('copayApp.controllers').controller('PaymentIntentController', fun
|
|||
var ret = _.filter($rootScope.iden.listWallets(), function(w) {
|
||||
return w.balanceInfo && w.balanceInfo.totalBalanceBTC;
|
||||
});
|
||||
$scope.wallets = ret;
|
||||
$scope.loading = false;
|
||||
$timeout(function() {
|
||||
$scope.wallets = ret;
|
||||
$scope.loading = false;
|
||||
$scope.$digest();
|
||||
}, 1);
|
||||
};
|
||||
if ($rootScope.iden) {
|
||||
var iden = $rootScope.iden;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue