iptdevs-design-system 3.1.174 → 3.1.176
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/steps/cod-form-step-one/cod-form-step-one.component.mjs +19 -8
- package/fesm2015/iptdevs-design-system.mjs +18 -7
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +18 -7
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3109,13 +3109,13 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3109
3109
|
this.copies = this.copiesService.copies;
|
|
3110
3110
|
}
|
|
3111
3111
|
ngOnInit() {
|
|
3112
|
-
this.getParameters();
|
|
3113
|
-
this.initForm();
|
|
3114
|
-
this.startLocalStorageWork();
|
|
3115
|
-
this.setValuesByLocalStorage()
|
|
3116
|
-
this.codFormStepOne.controls['course_type'].valueChanges
|
|
3117
|
-
|
|
3118
|
-
this.communicatorService.setCurrentAgreement(this.localStorageCOD.getCodFormData(1, 'agreement_by_category'));
|
|
3112
|
+
// this.getParameters();
|
|
3113
|
+
// this.initForm();
|
|
3114
|
+
// this.startLocalStorageWork();
|
|
3115
|
+
// this.setValuesByLocalStorage()
|
|
3116
|
+
// this.codFormStepOne.controls['course_type'].valueChanges
|
|
3117
|
+
// .subscribe(value => this.communicatorService.setCurrentCourseType(value));
|
|
3118
|
+
// this.communicatorService.setCurrentAgreement(this.localStorageCOD.getCodFormData(1, 'agreement_by_category')!);
|
|
3119
3119
|
}
|
|
3120
3120
|
/* Es necesario recorrer el array de controls de nuestro formulario para:
|
|
3121
3121
|
✅ Leer el Local Storage y setear los valores
|
|
@@ -3124,12 +3124,23 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3124
3124
|
Nota: la clase CodFormSteps() se encarga de toda la lógica de LS con los pasos del formulario del COD
|
|
3125
3125
|
*/
|
|
3126
3126
|
ngOnChanges(changes) {
|
|
3127
|
+
// this.getParameters();
|
|
3128
|
+
this.initForm();
|
|
3129
|
+
this.startLocalStorageWork();
|
|
3130
|
+
// this.setValuesByLocalStorage()
|
|
3131
|
+
this.codFormStepOne.controls['course_type'].valueChanges
|
|
3132
|
+
.subscribe(value => this.communicatorService.setCurrentCourseType(value));
|
|
3133
|
+
this.communicatorService.setCurrentAgreement(this.localStorageCOD.getCodFormData(1, 'agreement_by_category'));
|
|
3127
3134
|
if (changes['initialData']) {
|
|
3128
3135
|
console.log(this.initialData);
|
|
3129
3136
|
if (this.initialData != null) {
|
|
3130
3137
|
console.log(this.initialData);
|
|
3131
3138
|
this.setDataFromUserHistory();
|
|
3132
3139
|
}
|
|
3140
|
+
else {
|
|
3141
|
+
this.getParameters();
|
|
3142
|
+
this.setValuesByLocalStorage();
|
|
3143
|
+
}
|
|
3133
3144
|
}
|
|
3134
3145
|
}
|
|
3135
3146
|
setDataFromUserHistory() {
|