New pairing request
This commit is contained in:
parent
756e1aa489
commit
d4ace8ab2c
4 changed files with 130 additions and 179 deletions
|
|
@ -4,9 +4,7 @@ angular.module('copayApp.controllers').controller('bitpayCardController', functi
|
|||
|
||||
var self = this;
|
||||
$scope.dateRange = 'last30Days';
|
||||
bitpayCardService.getEnvironment(function(err, network) {
|
||||
$scope.network = network;
|
||||
});
|
||||
$scope.network = bitpayCardService.getEnvironment();
|
||||
|
||||
var getFromCache = function(cb) {
|
||||
bitpayCardService.getBitpayDebitCardsHistory($scope.cardId, function(err, data) {
|
||||
|
|
@ -49,8 +47,8 @@ angular.module('copayApp.controllers').controller('bitpayCardController', functi
|
|||
$scope.loadingHistory = true;
|
||||
bitpayCardService.getHistory($scope.cardId, dateRange, function(err, history) {
|
||||
$scope.loadingHistory = false;
|
||||
if (err || history.error) {
|
||||
$log.error(err || history.error);
|
||||
if (err) {
|
||||
$log.error(err);
|
||||
$scope.error = gettextCatalog.getString('Could not get transactions');
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue