1/* @ngInject */ 2function CardsRemoveCtrl(cardsService, $translate) { 3 var ctrl = this; 4 5 ctrl.remove = function (type) { 6 7 var request; 8 9 switch (type) { 10 case 'coupon': 11 request = cardsService.deleteCoupon(); 12 break; 13 case 'certificate': 14 request = cardsService.deleteCertificate(); 15 break; 16 default: 17 throw Error($translate.instant('Js.Cards.NotFoundTypeToRemove')); 18 } 19 20 request.then(function () { 21 ctrl.applyFn(); 22 }); 23 }; 24}; 25 26export default CardsRemoveCtrl;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.