Implement multiple cards.

This commit is contained in:
Andy Phillipson 2016-11-11 18:11:52 -05:00
commit 40f0901f2e
11 changed files with 237 additions and 70 deletions

View file

@ -145,6 +145,12 @@ angular.module('copayApp.controllers').controller('bitpayCardController', functi
updateHistoryFromCache(function() {
self.update();
});
bitpayCardService.getBitpayDebitCards(function(err, cards) {
if (err) return;
$scope.card = lodash.find(cards, function(card) {
return card.eid == $scope.cardId;
});
});
}
});