iptdevs-design-system 3.1.167 → 3.1.169

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.
@@ -879,6 +879,11 @@ class UserService extends IPTGeneralService {
879
879
  this.generateRequestParams(params);
880
880
  return this.http.post(serviceUrl, this.httpOptions);
881
881
  }
882
+ obtainReferralUsers(token) {
883
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/referral/users';
884
+ this.generateRequestParams(token);
885
+ return this.http.post(serviceUrl, this.httpOptions);
886
+ }
882
887
  }
883
888
  UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: UserService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
884
889
  UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: UserService, providedIn: 'root' });
@@ -3103,26 +3108,18 @@ class CodFormStepOneComponent extends CodFormSteps {
3103
3108
  this.controls = new CodFormControls().controls[0];
3104
3109
  this.copies = this.copiesService.copies;
3105
3110
  }
3106
- // ngOnInit(): void {
3107
- // this.getParameters();
3108
- // this.initForm();
3109
- // this.startLocalStorageWork();
3110
- // this.setValuesByLocalStorage()
3111
- // console.log(this.courseSelect);
3112
- // this.codFormStepOne.controls['course_type'].valueChanges
3113
- // .subscribe(value => this.communicatorService.setCurrentCourseType(value));
3114
- // this.communicatorService.setCurrentAgreement(this.localStorageCOD.getCodFormData(1, 'agreement_by_category')!);
3115
- // }
3116
- ngOnChanges(changes) {
3111
+ ngOnInit() {
3117
3112
  this.getParameters();
3118
3113
  this.initForm();
3119
3114
  this.startLocalStorageWork();
3120
3115
  this.setValuesByLocalStorage();
3121
- console.log(this.courseSelect);
3122
3116
  this.codFormStepOne.controls['course_type'].valueChanges
3123
3117
  .subscribe(value => this.communicatorService.setCurrentCourseType(value));
3124
3118
  this.communicatorService.setCurrentAgreement(this.localStorageCOD.getCodFormData(1, 'agreement_by_category'));
3119
+ }
3120
+ ngOnChanges(changes) {
3125
3121
  if (changes['courseSelect']) {
3122
+ console.log(this.courseSelect);
3126
3123
  if (this.courseSelect != null) {
3127
3124
  console.log(this.courseSelect);
3128
3125
  // if (this.initialData.student != null) {
@@ -4284,7 +4281,7 @@ class ModalReferredComponent {
4284
4281
  param: form.value.searchUser,
4285
4282
  };
4286
4283
  if (form.value.searchUser != "") {
4287
- this.userService.getStudent(request).subscribe((response) => {
4284
+ this.userService.obtainReferralUsers(request).subscribe((response) => {
4288
4285
  if (response.data == null) {
4289
4286
  this.userExists = false;
4290
4287
  Swal.fire({