validaciones proyecto

parent 567d984c
...@@ -71,7 +71,7 @@ export class AddObjetivosEstrategicosComponent implements OnInit { ...@@ -71,7 +71,7 @@ export class AddObjetivosEstrategicosComponent implements OnInit {
obtenerHijo2(id: number){ obtenerHijo2(id: number){
this.objEstraInS.obtenerHijo(id).subscribe( data =>{ this.objEstraInS.obtenerHijo(id).subscribe( data =>{
this.estra = data; this.estra = data.filter(item => !this.estrategiaAgregada(item.uzytavobjetivos_ESTRA_INSTI_ID));
}); });
} }
......
...@@ -39,6 +39,20 @@ export class EditViabilidadComponent implements OnInit { ...@@ -39,6 +39,20 @@ export class EditViabilidadComponent implements OnInit {
cancelado() { cancelado() {
this.cambio = false; this.cambio = false;
this.isEditorEnabled = false; this.isEditorEnabled = false;
this.myForm.get('viabilidad').setValue('');
this.myForm.get('perderia').setValue('');
this.myForm.get('resultadoO').setValue('');
this.myForm.get('viabilidad').markAsPristine();
this.myForm.get('viabilidad').markAsUntouched();
this.myForm.get('perderia').markAsPristine();
this.myForm.get('perderia').markAsUntouched();
this.myForm.get('resultadoO').markAsPristine();
this.myForm.get('resultadoO').markAsUntouched();
} }
ngOnInit(): void { ngOnInit(): void {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment