Updated for 1.3.6.
This commit is contained in:
parent
7a2d386f34
commit
ff56fc2bee
7 changed files with 62 additions and 123 deletions
|
|
@ -45,7 +45,7 @@ angular.module('copayApp.controllers').controller('preferencesBitpayServicesCont
|
|||
};
|
||||
|
||||
var removeCard = function(card) {
|
||||
bitpayCardService.removeCard(card, function(err) {
|
||||
bitpayCardService.remove(card.id, function(err) {
|
||||
if (err) {
|
||||
return popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Could not remove card'));
|
||||
}
|
||||
|
|
@ -54,13 +54,13 @@ angular.module('copayApp.controllers').controller('preferencesBitpayServicesCont
|
|||
};
|
||||
|
||||
var setScope = function(cb) {
|
||||
bitpayAccountService.getAccounts(function(err, data) {
|
||||
bitpayAccountService.getAccounts(function(err, accounts) {
|
||||
if (err) return;
|
||||
$scope.bitpayAccounts = data;
|
||||
$scope.bitpayAccounts = accounts;
|
||||
|
||||
bitpayCardService.getBitpayDebitCards(function(err, data) {
|
||||
bitpayCardService.getCards(function(err, cards) {
|
||||
if (err) return;
|
||||
$scope.bitpayCards = data;
|
||||
$scope.bitpayCards = cards;
|
||||
if (cb) {
|
||||
cb();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue