Skip to content

Commit

Permalink
fix(MAT): Agregar control de patron para telefono fijo (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
silviroa authored Sep 11, 2024
1 parent e6f8966 commit c64de1c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/components/profesionales/profesional.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,14 @@
</plex-phone>
</ng-container>
<ng-container class="w-100" *ngIf="_unContacto.tipo && !_unContacto.tipo.id">
<plex-text *ngIf="_unContacto.tipo !== 'celular'" label="Dato:"
[(ngModel)]="_unContacto.valor" name="valor-{{i}}"
<plex-text *ngIf="_unContacto.tipo !== 'celular' && _unContacto.tipo !== 'fijo'"
label="Dato:" [(ngModel)]="_unContacto.valor" name="valor-{{i}}"
[required]="!noPoseeContacto && (i <= 0)"
[pattern]="patronContactoAlfabetico">
</plex-text>

<plex-phone label="Número:" *ngIf="_unContacto.tipo === 'celular'"
<plex-phone label="Número:"
*ngIf="_unContacto.tipo === 'celular' || _unContacto.tipo === 'fijo' "
[(ngModel)]="_unContacto.valor" placeholder="Ej: 2990000000"
[required]="!noPoseeContacto && (i <= 0)" name="valor-{{i}}"
[pattern]="patronContactoNumerico">
Expand Down

0 comments on commit c64de1c

Please sign in to comment.