iptdevs-design-system 3.1.524 → 3.1.526
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-two/cod-self-form-step-two.component.mjs +3 -20
- package/fesm2015/iptdevs-design-system.mjs +2 -19
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +2 -19
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -6668,33 +6668,16 @@ class CodSelfFormStepTwoComponent extends CodSelfManagedSteps {
|
|
|
6668
6668
|
valuesInitialSchedule() {
|
|
6669
6669
|
const scheduleValue = localStorage.getItem('COD SELF - step2(schedule)');
|
|
6670
6670
|
const courseModality = localStorage.getItem('COD SELF - step2(modality)');
|
|
6671
|
-
// Verifica si hay un valor en el localStorage
|
|
6672
6671
|
if (scheduleValue && scheduleValue.trim() != '') {
|
|
6673
|
-
// Si hay un valor en el localStorage, establece el valor del FormControl
|
|
6674
6672
|
this.codSelfFormStepTwo.controls['schedule'].setValue(new Date(scheduleValue));
|
|
6675
6673
|
}
|
|
6676
6674
|
else {
|
|
6677
|
-
// Si no hay un valor en el localStorage, o si es null o vacío, establece un valor predeterminado
|
|
6678
6675
|
this.codSelfFormStepTwo.controls['schedule'].setValue(new Date());
|
|
6679
6676
|
}
|
|
6680
|
-
if (courseModality && courseModality.trim()
|
|
6681
|
-
|
|
6682
|
-
// this.codSelfFormStepTwo.controls['modality'].setValue(courseModality);
|
|
6683
|
-
if (courseModality == "1") {
|
|
6684
|
-
this.codSelfFormStepTwo.patchValue({
|
|
6685
|
-
modality: this.stateOptions[0]
|
|
6686
|
-
});
|
|
6687
|
-
this.codSelfFormStepTwo.controls['modality'].setValue(courseModality);
|
|
6688
|
-
}
|
|
6689
|
-
else {
|
|
6690
|
-
this.codSelfFormStepTwo.patchValue({
|
|
6691
|
-
modality: this.stateOptions[1]
|
|
6692
|
-
});
|
|
6693
|
-
this.codSelfFormStepTwo.controls['modality'].setValue(courseModality);
|
|
6694
|
-
}
|
|
6677
|
+
if (courseModality && courseModality.trim() !== '') {
|
|
6678
|
+
this.codSelfFormStepTwo.controls['modality'].setValue(courseModality);
|
|
6695
6679
|
}
|
|
6696
6680
|
else {
|
|
6697
|
-
// Si no hay un valor en el localStorage, o si es null o vacío, establece un valor predeterminado
|
|
6698
6681
|
this.codSelfFormStepTwo.controls['modality'].setValue(null);
|
|
6699
6682
|
}
|
|
6700
6683
|
}
|