Skip to content

Commit

Permalink
fix(citas): se agregan controles en agendas con profesionales null
Browse files Browse the repository at this point in the history
  • Loading branch information
MCele committed Apr 25, 2022
1 parent 72b0a18 commit 71800cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app/components/turnos/dar-turnos/dar-turnos.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@
<plex-label size="md" titulo="Prestación"
subtitulo="{{agenda.tipoPrestaciones | enumerar:['nombre']}}">
</plex-label>
<plex-help *ngIf="agenda.profesionales.length !== 0 || agenda.espacioFisico" titulo=""
<plex-help *ngIf="agenda.profesionales?.length || agenda.espacioFisico" titulo=""
subtitulo="" type="help" size="sm" icon="information-variant">
<plex-label *ngIf="agenda.profesionales.length !== 0" size="md"
<plex-label *ngIf="agenda.profesionales?.length !== 0" size="md"
titulo="Equipo de Salud"
subtitulo="{{agenda.profesionales | enumerar:['apellido','nombre']}}">
</plex-label>
Expand Down
6 changes: 3 additions & 3 deletions src/app/components/turnos/punto-inicio/turnos-paciente.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h5 *ngIf="!turnosPaciente || turnosPaciente?.length === 0">


<div class="col-md-6">
<div *ngIf="turno && turno.profesionales.length>0">
<div *ngIf="turno && turno.profesionales?.length">
<div class="col-md">
<strong>Equipo de Salud</strong>
<div *ngFor="let profesional of turno.profesionales">
Expand Down Expand Up @@ -72,7 +72,7 @@ <h5 *ngIf="!turnosPaciente || turnosPaciente?.length === 0">
</div>
<div class="col-md-12">
<div
*ngIf="modelo.obraSocial !== 'SUMAR' && turno && turno.profesionales.length > 0 && turno.estado !== 'suspendido' && turno.paciente.documento">
*ngIf="modelo.obraSocial !== 'SUMAR' && turno && turno.profesionales?.length && turno.estado !== 'suspendido' && turno.paciente.documento">
<plex-radio *ngIf="turno.paciente.obraSocial"
[(ngModel)]="turno.paciente.obraSocial.nombre" name="os"
(change)="seleccionarObraSocial($event, turno)"
Expand Down Expand Up @@ -106,7 +106,7 @@ <h5 *ngIf="!turnosPaciente || turnosPaciente?.length === 0">
(click)="eventosTurno(turno,'sacarAsistencia')"></plex-button>


<plex-button *ngIf="modelo.obraSocial !== 'SUMAR' && turno && turno.profesionales.length > 0 && turno.paciente.documento"
<plex-button *ngIf="modelo.obraSocial !== 'SUMAR' && turno && turno.profesionales?.length > 0 && turno.paciente.documento"
class="float-right mr-1" type="info btn-sm" label="Recupero"
(click)="showArancelamiento(turno)">
</plex-button>
Expand Down

0 comments on commit 71800cd

Please sign in to comment.