-
Notifications
You must be signed in to change notification settings - Fork 5
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
MISC: componente semaforo priorizacion #2349
Conversation
this.semaforoService.findByName('com').subscribe(res => this.opciones = res.options); | ||
} | ||
|
||
setPrioridad(prioridad) { |
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.
Esta mal modificar un input, debería trabajarlo con @output().
Ya que están armando todo una colección de semáforos configurable por módulos, pero la componente es rígida para el COM.
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.
Esta mal modificar un input, debería trabajarlo con @output().
Ya que están armando todo una colección de semáforos configurable por módulos, pero la componente es rígida para el COM.
updeteado!
6598250
to
883ef43
Compare
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.
Todo lo demás anduvo OK!
src/app/modules/semaforo-priorizacion/components/semaforo-priorizacion.component.ts
Outdated
Show resolved
Hide resolved
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.
🥳
<div class="mt-1"> | ||
<plex-label [tituloBold]="true" titulo="Prioridad"></plex-label> | ||
<ng-container *ngFor="let p of opciones"> | ||
<div [class]="p.label + ' box'" [ngStyle]="{ background: p.color }" [class.selected]="p.label === prioridad" (click)="select(p);" > |
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.
<div [class]="p.label + ' box'" [ngStyle]="{ background: p.color }" [class.selected]="p.label === prioridad" (click)="select(p);" > | |
<div class="box" [class]="p.label" [style.background]="p.color" [class.selected]="p.label === prioridad" (click)="select(p)" > |
}) | ||
|
||
export class SemaforoPriorizacionComponent implements OnInit { | ||
@Output() onChangeEvent = new EventEmitter<any>(); |
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.
@Output() onChangeEvent = new EventEmitter<any>(); | |
@Output() change = new EventEmitter<any>(); |
@Output() onChangeEvent = new EventEmitter<any>(); | ||
@Input() name; | ||
@Input() prioridad; | ||
opciones; |
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.
Estaría bueno armar la interfaz y tipar en todas las compoenntes, así ya queda...
opciones; | ||
|
||
constructor( | ||
private semaforoService: SemaforoService) { } |
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.
private semaforoService: SemaforoService) { } | |
private semaforoService: SemaforoService | |
) { } |
@liquid36 buenas observaciones! Listo todos los cambios! |
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.
👍
fc0c9d0
to
cde5b4c
Compare
cde5b4c
to
913b3ff
Compare
# [5.59.0](v5.58.0...v5.59.0) (2021-08-11) ### Bug Fixes * **ficha-epidemiologica:** fix duplicidad sidebars buscador ([#2396](#2396)) ([52100b2](52100b2)) ### Features * **EP:** refactor de historial de ficha ([#2385](#2385)) ([e86d733](e86d733)) * **huds:** clasificacion final ficha epidemiologica ([#2381](#2381)) ([36b932d](36b932d)) * **MISC:** componente semaforo priorizacion ([#2349](#2349)) ([2578922](2578922)) * **mpi:** permite letras en nro. de identificacion de extranjero ([#2386](#2386)) ([c8055e6](c8055e6)) * **per:** descargar listado de controles ([#2390](#2390)) ([8bbb5e5](8bbb5e5)) * **rup:** vista-prestacion boton editar ([#2137](#2137)) ([2a14035](2a14035))
Requerimiento
https://proyectos.andes.gob.ar/browse/MISC-171
Funcionalidad desarrollada
UserStory llegó a completarse
Requiere actualizaciones en la base de datos
Si Colección
semaforo
semaforo com.txt
No
Requiere actualizaciones en la API
Requiere actualizaciones en andes-test-integracion