Input type number. Fix empty gift cards list
This commit is contained in:
parent
02334320d0
commit
210bbc36cc
6 changed files with 33 additions and 45 deletions
|
|
@ -23,6 +23,7 @@ angular.module('copayApp.controllers').controller('amazonCardDetailsController',
|
|||
|
||||
$scope.remove = function() {
|
||||
amazonService.saveGiftCard($scope.card, {remove: true}, function(err) {
|
||||
$scope.$emit('UpdateAmazonList');
|
||||
$scope.cancel();
|
||||
});
|
||||
};
|
||||
|
|
@ -43,6 +44,7 @@ angular.module('copayApp.controllers').controller('amazonCardDetailsController',
|
|||
$scope.error = err;
|
||||
return;
|
||||
}
|
||||
$scope.$emit('UpdateAmazonList');
|
||||
$scope.card = data;
|
||||
$timeout(function() {
|
||||
$scope.$digest();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue