iptdevs-design-system 3.1.867 → 3.1.868
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 +8 -10
- package/fesm2015/iptdevs-design-system.mjs +7 -9
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +7 -9
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3776,8 +3776,6 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3776
3776
|
getParameters() {
|
|
3777
3777
|
this.plans = this.parametersAll?.academicPlan;
|
|
3778
3778
|
this.levels = this.parametersAll?.english_levels;
|
|
3779
|
-
// this.course_type = this.parametersAll?.courseType;
|
|
3780
|
-
// this.agreements = this.parametersAll?.agreement;
|
|
3781
3779
|
}
|
|
3782
3780
|
initForm() {
|
|
3783
3781
|
this.codFormStepOne = this.fb.group({
|
|
@@ -3835,11 +3833,11 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3835
3833
|
}
|
|
3836
3834
|
}
|
|
3837
3835
|
getCourseType(plan) {
|
|
3838
|
-
const planNumber = typeof plan === 'string' ? parseInt(plan
|
|
3836
|
+
const planNumber = typeof plan === 'string' ? parseInt(plan) : plan;
|
|
3839
3837
|
if (this.parametersAll && this.parametersAll?.courseType) {
|
|
3840
3838
|
this.course_type = this.parametersAll.courseType.filter((course) => {
|
|
3841
3839
|
const academicPlan = typeof course.academic_plan === 'string'
|
|
3842
|
-
? parseInt(course.academic_plan
|
|
3840
|
+
? parseInt(course.academic_plan)
|
|
3843
3841
|
: course.academic_plan;
|
|
3844
3842
|
return academicPlan === planNumber;
|
|
3845
3843
|
});
|
|
@@ -3849,11 +3847,11 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3849
3847
|
}
|
|
3850
3848
|
}
|
|
3851
3849
|
getAgreementByPlan(plan) {
|
|
3852
|
-
const planNumber = typeof plan === 'string' ? parseInt(plan
|
|
3850
|
+
const planNumber = typeof plan === 'string' ? parseInt(plan) : plan;
|
|
3853
3851
|
if (this.parametersAll && this.parametersAll?.agreement) {
|
|
3854
3852
|
this.agreements = this.parametersAll.agreement.filter((course) => {
|
|
3855
3853
|
const academicPlan = typeof course.category === 'string'
|
|
3856
|
-
? parseInt(course.category
|
|
3854
|
+
? parseInt(course.category)
|
|
3857
3855
|
: course.category;
|
|
3858
3856
|
return academicPlan === planNumber;
|
|
3859
3857
|
});
|
|
@@ -3913,9 +3911,9 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3913
3911
|
this.codFormStepOne.controls['course_type'].value != '');
|
|
3914
3912
|
}
|
|
3915
3913
|
getAvailibleCourses() {
|
|
3916
|
-
if (this.isLoading) {
|
|
3917
|
-
|
|
3918
|
-
}
|
|
3914
|
+
// if (this.isLoading) {
|
|
3915
|
+
// return;
|
|
3916
|
+
// }
|
|
3919
3917
|
this.availibleCourses = [];
|
|
3920
3918
|
if (this.validRequest()) {
|
|
3921
3919
|
this.isLoading = true;
|