iptdevs-design-system 3.1.4379 → 3.1.4380
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 +12 -4
- package/fesm2015/iptdevs-design-system.mjs +11 -3
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +11 -3
- 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 +1 -0
- package/package.json +1 -1
|
@@ -6333,18 +6333,26 @@ class CodSelfFormStepOneComponent extends CodSelfManagedSteps {
|
|
|
6333
6333
|
}
|
|
6334
6334
|
ngOnChanges(changes) {
|
|
6335
6335
|
this.startLocalStorageWork();
|
|
6336
|
-
// this.setValuesByLocalStorage();
|
|
6337
6336
|
if (changes['user']) {
|
|
6338
|
-
|
|
6337
|
+
const currentUser = changes['user'].currentValue;
|
|
6338
|
+
const previousUser = changes['user'].previousValue;
|
|
6339
|
+
// Verifica si el objeto 'user' actual es diferente al anterior
|
|
6340
|
+
if (!this.areEqualUsers(currentUser, previousUser)) {
|
|
6339
6341
|
console.log('setDataUsers');
|
|
6340
6342
|
this.setDataUsers();
|
|
6341
6343
|
// this.cdRef.detectChanges();
|
|
6342
6344
|
}
|
|
6343
6345
|
else {
|
|
6344
|
-
console.log('
|
|
6346
|
+
console.log('No hay cambios en el usuario');
|
|
6345
6347
|
}
|
|
6346
6348
|
}
|
|
6347
6349
|
}
|
|
6350
|
+
areEqualUsers(user1, user2) {
|
|
6351
|
+
// Implementa la lógica para comparar los valores relevantes de los objetos 'user'
|
|
6352
|
+
// Aquí puedes comparar las propiedades relevantes para determinar si son iguales o no
|
|
6353
|
+
// Por ejemplo:
|
|
6354
|
+
return JSON.stringify(user1) === JSON.stringify(user2);
|
|
6355
|
+
}
|
|
6348
6356
|
initForm() {
|
|
6349
6357
|
this.codSelfFormStepOne = this.fb.group({
|
|
6350
6358
|
student_name: ['', [Validators.required]],
|