Generate local priv key
This commit is contained in:
parent
b82bdaaafc
commit
87535b3f24
5 changed files with 61 additions and 78 deletions
|
|
@ -4,7 +4,9 @@ angular.module('copayApp.controllers').controller('bitpayCardController', functi
|
|||
|
||||
var self = this;
|
||||
$scope.dateRange = 'last30Days';
|
||||
$scope.network = bitpayCardService.getEnvironment();
|
||||
bitpayCardService.getEnvironment(function(err, network) {
|
||||
$scope.network = network;
|
||||
});
|
||||
|
||||
var getFromCache = function(cb) {
|
||||
bitpayCardService.getBitpayDebitCardsHistory($scope.cardId, function(err, data) {
|
||||
|
|
|
|||
|
|
@ -203,11 +203,11 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
|||
|
||||
var bitpayCardCache = function() {
|
||||
bitpayCardService.getBitpayDebitCards(function(err, data) {
|
||||
if (err) return;
|
||||
if (err || lodash.isEmpty(data)) return;
|
||||
$scope.bitpayCards = data.cards;
|
||||
});
|
||||
bitpayCardService.getBitpayDebitCardsHistory(null, function(err, data) {
|
||||
if (err || lodash.isEmpty(data)) return;
|
||||
if (err || lodash.isEmpty(data)) return;
|
||||
$scope.cardsHistory = data;
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue