Input type number. Fix empty gift cards list

This commit is contained in:
Gustavo Maximiliano Cortez 2016-06-14 00:36:41 -03:00
commit 210bbc36cc
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
6 changed files with 33 additions and 45 deletions

View file

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