Skip to content

Commit

Permalink
refactor(MISC-166): bug al cargar numero de carpeta a un paciente
Browse files Browse the repository at this point in the history
  • Loading branch information
MarianoCampetella committed Jul 19, 2021
1 parent 5406602 commit e17d506
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ export class CarpetaPacienteComponent implements OnInit {
guardarCarpetaPaciente(nuevaCarpeta = false) {
if (this.autorizado && this.nuevoNroCarpeta) {
if (/^\s*$/.test(this.nuevoNroCarpeta)) {
this.plex.info('warning', '', 'Ingrese un número de carpeta válido');
this.plex.toast('warning', '', 'Ingrese un número de carpeta válido');
this.nuevoNroCarpeta = '';
return;
} else {
this.carpetaPaciente.nroCarpeta = this.nuevoNroCarpeta.trim();
if (this.indiceCarpeta > -1) {
Expand Down Expand Up @@ -159,10 +161,11 @@ export class CarpetaPacienteComponent implements OnInit {
);
}
} else {
this.plex.info('warning', '', 'Ingrese un número de carpeta válido');
this.plex.toast('warning', '', 'Ingrese un número de carpeta válido');
this.carpetaPaciente.nroCarpeta = this.nroCarpetaOriginal;
this.guardarCarpetaEmit.emit(false);
this.nuevoNroCarpeta = '';
return;
}
this.showEdit = false;
this.showList = true;
Expand Down

0 comments on commit e17d506

Please sign in to comment.