Wallet/src/js/controllers/modals/mercadoLibreCardDetails.js

21 lines
591 B
JavaScript
Raw Normal View History

2017-05-08 09:23:47 -03:00
'use strict';
angular.module('copayApp.controllers').controller('mercadoLibreCardDetailsController', function($scope, $log, $timeout, $ionicScrollDelegate, bwcError, mercadoLibreService, lodash, ongoingProcess, popupService, externalLinkService) {
$scope.remove = function() {
mercadoLibreService.savePendingGiftCard($scope.card, {
remove: true
}, function(err) {
2017-07-26 16:25:12 -03:00
$scope.close();
2017-05-08 09:23:47 -03:00
});
};
2017-07-26 16:25:12 -03:00
$scope.close = function() {
2017-05-08 09:23:47 -03:00
$scope.mercadoLibreCardDetailsModal.hide();
};
$scope.openExternalLink = function(url) {
externalLinkService.open(url);
};
});