Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INTERNACION - Corrige accion saltar al presente que quitaba la fecha #2005

Merged
merged 2 commits into from
Oct 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ng-container *ngIf="fecha$ | async as fecha">
<plex-badge type="info" size="sm">{{fecha | date: 'dd/MM/yyyy'}} | {{fecha | date: 'HH:mm'}}
<plex-datetime title="Cambiar Fecha" titlePosition="left" btnOnly="true" size="sm" type="datetime"
[ngModel]="fecha" (change)="setFecha($event)" name="fecha" class="d-inline-block"
[ngModel]="fecha" (change)="setFecha($event.value)" name="fecha" class="d-inline-block"
[max]="fechaActual" [debounce]="600">
</plex-datetime>
</plex-badge>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ export class EstadoServicioComponent implements OnInit, OnDestroy {
}, {});
}

setFecha($event) {
const fecha = $event.value;
this.mapaCamasService.setFecha(fecha);
setFecha(fechaActual) {
this.mapaCamasService.setFecha(fechaActual);
}
}