iptdevs-design-system 3.1.3101 → 3.1.3102

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.
@@ -6119,6 +6119,7 @@ class CodSelfFormStepOneComponent {
6119
6119
  ngOnInit() {
6120
6120
  this.initForm();
6121
6121
  this.getParameters();
6122
+ this.setDataUsers();
6122
6123
  }
6123
6124
  initForm() {
6124
6125
  this.codSelfFormStepOne = this.fb.group({
@@ -6168,6 +6169,17 @@ class CodSelfFormStepOneComponent {
6168
6169
  });
6169
6170
  });
6170
6171
  }
6172
+ setDataUsers() {
6173
+ this.codSelfFormStepOne.controls['student_name'].setValue(this.user.name ? this.user.name : null);
6174
+ this.codSelfFormStepOne.controls['student_last_name'].setValue(this.user.last_name ? this.user.last_name : null);
6175
+ this.codSelfFormStepOne.controls['student_id_card_type'].setValue(this.user.id_card_type ? this.user.id_card_type : null);
6176
+ this.codSelfFormStepOne.controls['student_id_card'].setValue(this.user.id_card ? this.user.id_card : null);
6177
+ this.codSelfFormStepOne.controls['country'].setValue(this.user.city[0]?.country ? this.user.city[0]?.country : null);
6178
+ this.codSelfFormStepOne.controls['state'].setValue(this.user.city[0]?.state ? this.user.city[0]?.state : null);
6179
+ this.codSelfFormStepOne.controls['city'].setValue(this.user.city[0]?.code ? this.user.city[0]?.code : null);
6180
+ this.codSelfFormStepOne.controls['gender'].setValue(this.user.gender ? this.user.gender : null);
6181
+ this.codSelfFormStepOne.controls['birthdate'].setValue(this.user.birthdate ? this.user.birthdate : null);
6182
+ }
6171
6183
  selectCountry(country) {
6172
6184
  let iso = '';
6173
6185
  if (country === '2')