iptdevs-design-system 3.1.4381 → 3.1.4383
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/cod-self-managed/steps/cod-form-step-one/cod-self-form-step-one.component.mjs +11 -12
- package/fesm2015/iptdevs-design-system.mjs +10 -11
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +10 -11
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod-self-managed/steps/cod-form-step-one/cod-self-form-step-one.component.d.ts +0 -1
- package/package.json +1 -1
|
@@ -6339,22 +6339,21 @@ class CodSelfFormStepOneComponent extends CodSelfManagedSteps {
|
|
|
6339
6339
|
console.log('currentUser', currentUser);
|
|
6340
6340
|
console.log('previousUser', previousUser);
|
|
6341
6341
|
// Verifica si el objeto 'user' actual es diferente al anterior
|
|
6342
|
-
if (
|
|
6343
|
-
console.log('setDataUsers');
|
|
6342
|
+
if (changes['user'] && this.user) {
|
|
6344
6343
|
this.setDataUsers();
|
|
6345
|
-
// this.cdRef.detectChanges();
|
|
6346
6344
|
}
|
|
6347
|
-
else {
|
|
6348
|
-
|
|
6345
|
+
else if (currentUser != this.user) {
|
|
6346
|
+
this.setDataUsers();
|
|
6349
6347
|
}
|
|
6348
|
+
// if (currentUser != this.user?) {
|
|
6349
|
+
// console.log('setDataUsers');
|
|
6350
|
+
// this.setDataUsers();
|
|
6351
|
+
// // this.cdRef.detectChanges();
|
|
6352
|
+
// } else {
|
|
6353
|
+
// console.log('No hay cambios en el usuario');
|
|
6354
|
+
// }
|
|
6350
6355
|
}
|
|
6351
6356
|
}
|
|
6352
|
-
areEqualUsers(user1, user2) {
|
|
6353
|
-
// Implementa la lógica para comparar los valores relevantes de los objetos 'user'
|
|
6354
|
-
// Aquí puedes comparar las propiedades relevantes para determinar si son iguales o no
|
|
6355
|
-
// Por ejemplo:
|
|
6356
|
-
return JSON.stringify(user1) === JSON.stringify(user2);
|
|
6357
|
-
}
|
|
6358
6357
|
initForm() {
|
|
6359
6358
|
this.codSelfFormStepOne = this.fb.group({
|
|
6360
6359
|
student_name: ['', [Validators.required]],
|