amazon cancel gift card feature
This commit is contained in:
parent
54fa81e975
commit
de6107206e
3 changed files with 32 additions and 0 deletions
|
|
@ -2,6 +2,18 @@
|
|||
|
||||
angular.module('copayApp.controllers').controller('amazonCardDetailsController', function($scope, $log, $timeout, bwcError, amazonService, lodash, ongoingProcess) {
|
||||
|
||||
$scope.cancelGiftCard = function() {
|
||||
ongoingProcess.set('Canceling gift card...', true);
|
||||
amazonService.cancelGiftCard($scope.card, function(err, data) {
|
||||
ongoingProcess.set('Canceling gift card...', false);
|
||||
if (err) {
|
||||
$scope.error = bwcError.msg(err);
|
||||
return;
|
||||
}
|
||||
$scope.$emit('UpdateAmazonList');
|
||||
});
|
||||
};
|
||||
|
||||
$scope.remove = function() {
|
||||
amazonService.savePendingGiftCard($scope.card, {
|
||||
remove: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue