fix refreshs

This commit is contained in:
Matias Alejo Garcia 2016-08-23 17:45:23 -03:00
commit d7080bb2c9
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
3 changed files with 16 additions and 22 deletions

View file

@ -32,7 +32,9 @@ angular.module('copayApp.controllers').controller('tabHomeController',
return;
}
wallet.status = status;
$scope.$apply();
$timeout(function(){
$scope.$apply();
}, 1);
});
};

View file

@ -39,7 +39,10 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
setPendingTxps(status.pendingTxps);
$scope.status = status;
$scope.$apply();
$timeout(function(){
$scope.$apply();
}, 1);
});
};
@ -126,7 +129,10 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
$scope.updatingTxHistoryProgress = txs ? txs.length : 0;
$scope.completeTxHistory = txs;
$scope.showHistory();
$scope.$digest();
$timeout(function(){
$scope.$apply();
}, 1);
};
$timeout(function() {
@ -142,7 +148,9 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
$scope.completeTxHistory = txHistory;
$scope.showHistory();
$scope.$apply();
$timeout(function(){
$scope.$apply();
}, 1);
});
});
};