iptdevs-design-system 2.7.158 → 2.7.159

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.
@@ -2222,7 +2222,6 @@ class CodDocumentsSectionComponent {
2222
2222
  this.docAgreement = false;
2223
2223
  this.docParent = false;
2224
2224
  this.docConfanorte = false;
2225
- this.visiBtn = ['docStudent', 'docAgreement', 'docParent', 'docConfanorte'];
2226
2225
  this.idPdf = [];
2227
2226
  this.numDoc = -1;
2228
2227
  this.documentsForm = this.fb.group({
@@ -2238,8 +2237,21 @@ class CodDocumentsSectionComponent {
2238
2237
  }
2239
2238
  catchDocument(event, visible) {
2240
2239
  this.numDoc++;
2241
- for (let i = 0; i < this.visiBtn.length; i++) {
2242
- this.visiBtn[i] == visible ? this.visiBtn[i] == true : null;
2240
+ switch (visible) {
2241
+ case 'docStudent':
2242
+ this.docStudent = true;
2243
+ break;
2244
+ case 'docAgreement':
2245
+ this.docAgreement = true;
2246
+ break;
2247
+ case 'docParent':
2248
+ this.docParent = true;
2249
+ break;
2250
+ case 'docConfanorte':
2251
+ this.docConfanorte = true;
2252
+ break;
2253
+ default:
2254
+ break;
2243
2255
  }
2244
2256
  const fileCatched = event.target.files[0];
2245
2257
  let reader = new FileReader();