Caching txs
This commit is contained in:
parent
c223de2c63
commit
48e921e7df
5 changed files with 59 additions and 34 deletions
|
|
@ -13,14 +13,7 @@ angular.module('copayApp.controllers').controller('glideraController',
|
|||
|
||||
$scope.account['token'] = data.token;
|
||||
$scope.account['status'] = data.status;
|
||||
$scope.account['price'] = {};
|
||||
|
||||
glideraService.buyPrice($scope.account.token, {qty: 1}, function(err, buy) {
|
||||
$scope.account.price['buy'] = buy.price;
|
||||
});
|
||||
glideraService.sellPrice($scope.account.token, {qty: 1}, function(err, sell) {
|
||||
$scope.account.price['sell'] = sell.price;
|
||||
});
|
||||
$scope.account['txs'] = data.txs;
|
||||
|
||||
$timeout(function() {
|
||||
$scope.$digest();
|
||||
|
|
@ -46,6 +39,8 @@ angular.module('copayApp.controllers').controller('glideraController',
|
|||
popupService.showAlert('Authorisation error', err);
|
||||
return;
|
||||
}
|
||||
$scope.account['token'] = data.token;
|
||||
$scope.account['status'] = data.status;
|
||||
init();
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue