Commit 135163358aafba2f16ef6bd5037a0221c9420c90

Authored by Benjamin Rodriguez
1 parent 9f2d599dd7
Exists in develop

arreglos

src/js/controllerMail.js
... ... @@ -56,8 +56,9 @@ angular.module('focaModal')
56 56 }
57 57 $scope.descargado = true;
58 58 $scope.esperando = true;
59   - $scope.mailCliente = rutaEnvioComprobante.mailCliente;
  59 + rutaEnvioComprobante.mailCliente = $scope.mailCliente;
60 60 Object.assign(options.options, { receiver: $scope.mailCliente });
  61 + console.log('ruta',rutaEnvioComprobante)
61 62  
62 63 focaModalService
63 64 .enviarCorreo(rutaEnvioComprobante.url, options.options)
... ... @@ -76,6 +77,8 @@ angular.module('focaModal')
76 77 emails.forEach(function (email) {
77 78 if (!regexMail.test(email.trim())) result = false;
78 79 });
  80 + console.log('email:',emails)
  81 + console.log('result:',result)
79 82 return result;
80 83 }
81 84 }
src/views/modal-mail.html
1   -<div class="modal-header" >
  1 +<div class="modal-header">
2 2 <h5 ng-bind="titulo"></h5>
3 3 </div>
4 4 <div class="modal-body">
... ... @@ -62,4 +62,3 @@
62 62 ng-disabled="!descargado"
63 63 >Aceptar</button>
64 64 </div>
65   -</div>