Commit 2674312b765984a824cc459911be33945ce33537

Authored by Jose Pinto
1 parent a1ee0c390b
Exists in master

agrego variable saveLoading

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
src/js/controller.js
... ... @@ -105,6 +105,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
105 105 return;
106 106 }
107 107 focaBotoneraLateralService.startGuardar();
  108 + $scope.saveLoading = true;
108 109 var notaPedido = {
109 110 id: $scope.notaPedido.id,
110 111 fechaCarga: $scope.now.toISOString().slice(0, 19).replace('T', ' '),
... ... @@ -159,6 +160,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
159 160 $scope.notaPedido.vendedor.CodVen);
160 161  
161 162 focaBotoneraLateralService.endGuardar(true);
  163 + $scope.saveLoading = false;
162 164 $scope.$broadcast('cleanCabecera');
163 165 $scope.$broadcast('addCabecera', {
164 166 label: 'Moneda:',
... ... @@ -200,6 +202,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
200 202 function(error) {
201 203 focaModalService.alert('Hubo un error al crear la nota de pedido');
202 204 focaBotoneraLateralService.endGuardar();
  205 + $scope.saveLoading = false;
203 206 console.info(error);
204 207 }
205 208 );