Skip to content

Commit

Permalink
feat(mapa-camas): renombra 'cambiar UO' a 'pase de UO'
Browse files Browse the repository at this point in the history
  • Loading branch information
GaboCancellieri authored and liquid36 committed Sep 21, 2020
1 parent d3bb8ba commit f5bef7c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<form #formCambiarCama="ngForm">
<plex-title justify titulo="{{ (cambiarUO) ? 'Cambiar Unidad Organizativa' : 'Cambiar cama' }}">
<plex-title justify titulo="{{ (cambiarUO) ? 'Pase de Unidad Organizativa' : 'Cambiar cama' }}">
<plex-button title="guardar" icon="check" type="success" size="sm" [validateForm]="formCambiarCama"
(click)="guardar($event)">
</plex-button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ export class CambiarCamaComponent implements OnInit, OnDestroy {
return this.cambiarCama(camaActual, this.nuevaCama, fechaCambio);
})
).subscribe(() => {
this.plex.info('success', 'Cambio de cama exitoso!');
const mensaje = (this.cambiarUO) ? 'Pase de unidad organizativa exitoso!' : 'Cambio de cama exitoso!';
this.plex.info('success', mensaje);
this.mapaCamasService.setFecha(this.fecha);
this.onSave.emit();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<ng-container *ngIf="!(camasDisponibles.camasMismaUO.length > 0)">
<strong>No hay camas disponibles en la unidad organizativa actual.</strong>
</ng-container>
<plex-button label="Cambiar de unidad organizativa" type="secondary" size="block"
<plex-button label="Pase de unidad organizativa" type="secondary" size="block"
title="{{ (!permisoMovimiento) ? 'No tiene permisos suficientes' : null }}"
[disabled]="!permisoMovimiento || !(camasDisponibles.camasDistintaUO.length > 0)"
(click)="cambiarCama(true)" [validateForm]="formReparada" class="mb-2">
Expand Down

0 comments on commit f5bef7c

Please sign in to comment.