-
Notifications
You must be signed in to change notification settings - Fork 4
AM - Se refactoriza algo de código #228
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
base: master
Are you sure you want to change the base?
Conversation
| <ion-card-header> | ||
| <ion-avatar> | ||
| <ion-icon *ngIf="a?.link" name="desktop-outline" color="primary" class="icono-info"> | ||
| <ion-icon *ngIf="agenda?.link" name="desktop-outline" color="primary" class="icono-info"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Por qué se consulta si agenda existe? Puede ser undefined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tambien si lo unico que cambia si existe el link o no es el nombre, se podría hacer
<ion-icon [name]="agenda?.link ? 'desktop-outline' : 'andes-turno'" color="primary" class="icono-info"></ion-icon>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Se agrega el cambio.
| *ngIf="b.restantesProgramados > 0 && (b.restantesMobile > 0 || a.cumpleRegla) && incluyePrestacion(b)"> | ||
| <ng-container *ngFor="let t of b.turnos"> | ||
| <ion-item *ngIf="disponible(t)"> | ||
| *ngIf="bloque.restantesProgramados > 0 && (bloque.restantesMobile > 0 || agenda.cumpleRegla) && incluyePrestacion(bloque)"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
se podria extraer esto en una funcion de componente para evitar tener tanta lógica en el html y hacerlo más legible
<ng-container *ngIf="debeMostrarBloque(bloque, agenda)">
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agregada la sugerencia.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deje algunos comentarios como para sumar a la refactorización, ya que se tocan esas lineas
Gracias Juli, muy buenas observaciones. |
Requerimiento
https://proyectos.andes.gob.ar/browse/AM-331
Funcionalidad desarrollada
UserStory llegó a completarse
Requiere actualizaciones en la base de datos
Requiere actualizaciones en la API
Requiere actualizaciones en andes-test-integracion