iptdevs-design-system 3.2.4 → 3.2.6

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.
@@ -1902,10 +1902,10 @@ class updateUserFormComponent {
1902
1902
  { name: 'Suspensión o reactivación de cuenta', code: 7 },
1903
1903
  { name: 'Otro', code: 8 }
1904
1904
  ];
1905
+ this.setRoles();
1905
1906
  this.initForm();
1906
1907
  this.initConfirmForm();
1907
1908
  this.validationUserRole();
1908
- this.setRoles();
1909
1909
  }
1910
1910
  ngOnInit() {
1911
1911
  this.getParameters();
@@ -2024,6 +2024,8 @@ class updateUserFormComponent {
2024
2024
  this.setParameters();
2025
2025
  this.initializeForm();
2026
2026
  this.trackIdTypeChanges();
2027
+ this.validationUserRole();
2028
+ this.setRoles();
2027
2029
  this.cdr.detectChanges();
2028
2030
  this.pendingInit = false;
2029
2031
  },
@@ -2244,6 +2246,7 @@ class updateUserFormComponent {
2244
2246
  }
2245
2247
  this.selectGender(this.DataStudent.gender);
2246
2248
  }
2249
+ this.cdr.detectChanges();
2247
2250
  }
2248
2251
  }
2249
2252
  validationUserRole() {
@@ -2484,7 +2487,8 @@ class updateUserFormComponent {
2484
2487
  originalValue = this.DataStudent.city?.code || '';
2485
2488
  break;
2486
2489
  case 'role':
2487
- originalValue = this.transformRole(this.DataStudent.role) || '';
2490
+ // originalValue = this.transformRole(this.DataStudent.role) || '';
2491
+ originalValue = this.canEditRole ? this.DataStudent.role : this.transformRole(this.DataStudent.role) || '';
2488
2492
  break;
2489
2493
  case 'service_hour':
2490
2494
  originalValue = this.DataStudent.service_hour;