From 66933189f6cfa7832818510348e50c9c513dd4ba Mon Sep 17 00:00:00 2001 From: mpuebla Date: Wed, 10 Jul 2019 14:49:33 -0300 Subject: [PATCH] Agregado spinner para mostrar que se esta cargando la informacion. --- src/js/controller.js | 7 ++++--- src/views/nota-pedido.html | 5 +++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/js/controller.js b/src/js/controller.js index 641a3c6..3c7b68c 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -557,6 +557,7 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', ); modalInstanceDomicilio.result.then( function (domicilio) { + $scope.showLoading = true; $scope.notaPedido.domicilio = domicilio; $scope.notaPedido.cliente = { COD: cliente.cod, @@ -602,6 +603,8 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', { label: 'Cliente' })[0].checked = true; $filter('filter')($scope.botonera, { label: 'Domicilio de Entrega' })[0].checked = true; + + $scope.showLoading = false; }) .catch(function (e) { console.log(e); }); }, function () { @@ -630,9 +633,7 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', $scope.seleccionarPreciosYCondiciones = function () { - if (!validarNotaRemitada()) { - return; - } + if (!validarNotaRemitada()) return; if (!$scope.notaPedido.cliente.COD) { focaModalService.alert('Primero seleccione un cliente'); diff --git a/src/views/nota-pedido.html b/src/views/nota-pedido.html index 2cb358d..cc2af37 100644 --- a/src/views/nota-pedido.html +++ b/src/views/nota-pedido.html @@ -422,3 +422,8 @@ +
+
+
+ Cargando informacion... +
\ No newline at end of file -- 1.9.1