Generate local priv key

This commit is contained in:
Gustavo Maximiliano Cortez 2016-10-10 18:25:07 -03:00
commit 87535b3f24
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
5 changed files with 61 additions and 78 deletions

View file

@ -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) {

View file

@ -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;
});
};