iptdevs-design-system 3.1.495 → 3.1.497

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6392,10 +6392,13 @@ class CodSelfFormStepOneComponent extends CodSelfManagedSteps {
6392
6392
  //Add agreement si grade is pregrade or postgrado
6393
6393
  this.codSelfFormStepOne.controls['grade'].valueChanges.subscribe({
6394
6394
  next: (change) => {
6395
+ console.log("form onInit", change);
6395
6396
  if (change === 15 || change === 16) {
6397
+ this.showAgreementSelect = true;
6396
6398
  this.codSelfFormStepOne.controls['agreement_by_category'].setValidators([Validators.required]);
6397
6399
  }
6398
6400
  else {
6401
+ this.showAgreementSelect = false;
6399
6402
  this.codSelfFormStepOne.controls['agreement_by_category'].clearValidators();
6400
6403
  }
6401
6404
  this.codSelfFormStepOne.controls['agreement_by_category'].updateValueAndValidity();
@@ -6543,7 +6546,7 @@ class CodSelfFormStepOneComponent extends CodSelfManagedSteps {
6543
6546
  if (grade !== 'Grado Educativo') {
6544
6547
  this.codSelfFormStepOne.controls['grade'].setValue(grade);
6545
6548
  // Verificar si el grado seleccionado es 15 o 16
6546
- console.log(grade);
6549
+ console.log("selectGrade", grade);
6547
6550
  if (grade === 15 || grade === 16) {
6548
6551
  // Si es 15 o 16, mostrar el otro ipt-select
6549
6552
  this.showAgreementSelect = true;