Skip to content

Commit

Permalink
feat(HUDS): Agregar filtro de descargas pendientes
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-bravo authored and silviroa committed Dec 29, 2022
1 parent 8dd3a49 commit 0acfcf1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ export class TurnosPrestacionesComponent implements OnInit, OnDestroy {

getPendientes() {
this.exportHudsService.pendientes({ id: this.auth.usuario.id }).subscribe((data) => {
this.exportHudsService.hud$.next(data);
this.exportHudsService.refrescarPendientes();
});
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<plex-title titulo="Descargas pendientes" size="sm">
<plex-button tooltip="Actualizar" type="success" size="sm">
<plex-button tooltip="Actualizar" type="success" size="sm" class="mr-1">
<plex-icon prefix="adi" name="reload" (click)="descargasPendientes()" size="sm"></plex-icon>
</plex-button>
<ng-content></ng-content>
</plex-title>
<plex-wrapper>
<plex-datetime type="date" [(ngModel)]="fechaDesde" (change)="descargasPendientes()" name="fechaDesde"
label="Desde" class="fechas" [max]="fechaHasta" size="sm">
label="Fecha desde" class="fechas" [max]="fechaHasta" size="sm">
</plex-datetime>
<plex-datetime type="date" [(ngModel)]="fechaHasta" (change)="descargasPendientes()" name="fechaHasta"
label="Hasta" class="fechas" [min]="fechaDesde" size="sm">
label="Fecha hasta" class="fechas" [min]="fechaDesde" size="sm">
</plex-datetime>
</plex-wrapper>
<plex-table *ngIf="!sinPendientes; else noPendientes">
<tr *ngFor="let pendiente of completed">
<td>
<plex-label size="md"
titulo="{{pendiente.createdAt | date: 'dd/MM/yyyy HH:mm'}}-HUDS-{{pendiente.pacienteNombre?pendiente.pacienteNombre:''}}">
titulo="HUDS-{{pendiente.createdAt | date: 'dd/MM/yyyy HH:mm'}}{{pendiente.pacienteNombre?('-'+pendiente.pacienteNombre):''}}">
</plex-label>
</td>
<td>
Expand All @@ -27,7 +27,7 @@
<tr *ngFor="let pendiente of pending">
<td>
<plex-label size="md"
titulo="{{pendiente.createdAt | date: 'dd/MM/yyyy HH:mm'}}-HUDS-{{pendiente.pacienteNombre?pendiente.pacienteNombre:''}}">
titulo="HUDS-{{pendiente.createdAt | date: 'dd/MM/yyyy HH:mm'}}{{pendiente.pacienteNombre?('-'+pendiente.pacienteNombre):''}}">
</plex-label>
</td>
<td>
Expand Down

0 comments on commit 0acfcf1

Please sign in to comment.