iptdevs-design-system 3.2.10 → 3.2.11
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.
- package/esm2020/lib/components/forms/update-user-form/update-user-form.component.mjs +2 -3
- package/fesm2015/iptdevs-design-system.mjs +1 -2
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +1 -2
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1952,6 +1952,7 @@ class updateUserFormComponent {
|
|
|
1952
1952
|
this.updateUserForm.get('status')?.disable({ emitEvent: false });
|
|
1953
1953
|
}
|
|
1954
1954
|
else {
|
|
1955
|
+
// Lista reducida para otros roles
|
|
1955
1956
|
this.justifyOptions = [
|
|
1956
1957
|
{ name: 'Activo', code: 1 },
|
|
1957
1958
|
{ name: 'Removido', code: 4 }
|
|
@@ -2696,9 +2697,7 @@ class updateUserFormComponent {
|
|
|
2696
2697
|
// Agregar este método para verificar el rol y mostrar/ocultar campos
|
|
2697
2698
|
checkRoleForAdditionalFields(role) {
|
|
2698
2699
|
const roleNumber = typeof role === 'string' ? parseInt(role, 10) : role;
|
|
2699
|
-
// Roles que NO requieren email_ipt y service_hour: estudiante (13), posible estudiante (15), proveedor (60)
|
|
2700
2700
|
const rolesWithoutAdditionalFields = [13, 15, 60];
|
|
2701
|
-
// Si el rol actual NO está en la lista de roles sin campos adicionales, mostramos los campos
|
|
2702
2701
|
this.showEmailIptAndServiceHour = !rolesWithoutAdditionalFields.includes(roleNumber);
|
|
2703
2702
|
}
|
|
2704
2703
|
}
|