Commit 66869d8fc94e164df887d247cab832086e45f048
1 parent
b66e5bb84a
Exists in
master
cambio el nombre del servicio
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
src/js/controller.js
1 | 1 | angular.module('focaAbmPlazoPago') |
2 | 2 | .controller('focaAbmPlazosPagoController', [ |
3 | - '$scope', 'focaAbmPlazoPagoService', '$location', 'modal', | |
4 | - function($scope, focaAbmPlazoPagoService, $location, modal) { | |
3 | + '$scope', 'focaAbmPlazoPagoService', '$location', 'focaModalService', | |
4 | + function($scope, focaAbmPlazoPagoService, $location, focaModalService) { | |
5 | 5 | focaAbmPlazoPagoService.obtenerPlazosPago().then(function(datos) { |
6 | 6 | $scope.plazosPago = datos.data; |
7 | 7 | }); |
... | ... | @@ -9,8 +9,8 @@ angular.module('focaAbmPlazoPago') |
9 | 9 | $location.path('/plazo-pago/' + id); |
10 | 10 | }; |
11 | 11 | $scope.solicitarConfirmacion = function(plazoPago) { |
12 | - modal.confirm('¿Está seguro que desea borrar el plazo de pago'+plazoPago.item+' '+ | |
13 | - plazoPago.dias+' ?').then( | |
12 | + focaModalService.confirm('¿Está seguro que desea borrar el plazo de pago'+ | |
13 | + plazoPago.item+' '+plazoPago.dias+' ?').then( | |
14 | 14 | function(confirm) { |
15 | 15 | if(confirm){ |
16 | 16 | focaAbmPlazoPagoService.borrarPlazoPago(plazoPago.id); |