iptdevs-design-system 2.7.161 → 2.7.163

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.
@@ -2224,11 +2224,12 @@ class CodDocumentsSectionComponent {
2224
2224
  this.docConfanorte = false;
2225
2225
  this.idPdf = [];
2226
2226
  this.numDoc = -1;
2227
+ this.value = false;
2227
2228
  this.documentState = {
2228
- doc_student: false,
2229
- doc_agreement: false,
2230
- doc_parent: false,
2231
- doc_confanorte: false,
2229
+ doc_student: this.value,
2230
+ doc_agreement: this.value,
2231
+ doc_parent: this.value,
2232
+ doc_confanorte: this.value,
2232
2233
  };
2233
2234
  this.documentsForm = this.fb.group({
2234
2235
  doc_student: ['', [Validators.required], []],
@@ -2255,6 +2256,7 @@ class CodDocumentsSectionComponent {
2255
2256
  // default:
2256
2257
  // break;
2257
2258
  // }
2259
+ this.value = true;
2258
2260
  this.documentState[typeDoc] = true;
2259
2261
  const fileCatched = event.target.files[0];
2260
2262
  let reader = new FileReader();
@@ -2295,6 +2297,7 @@ class CodDocumentsSectionComponent {
2295
2297
  clearDocStudent(typeDoc) {
2296
2298
  const control = this.documentsForm.controls[typeDoc];
2297
2299
  control.setValue(null);
2300
+ this.value = false;
2298
2301
  this.documentState[typeDoc] = false;
2299
2302
  }
2300
2303
  }