iptdevs-design-system 3.1.119 → 3.1.121

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.
@@ -1516,7 +1516,6 @@ class CreateUserFormComponent {
1516
1516
  password: this.createUserForm.controls['password'].value,
1517
1517
  };
1518
1518
  this.userService.registerDashboard(request).subscribe((response) => {
1519
- console.log(response.message);
1520
1519
  switch (response.message.code) {
1521
1520
  case 1:
1522
1521
  this.userCreated.emit(true);
@@ -4089,28 +4088,29 @@ class ModalReferredComponent {
4089
4088
  token: this.baseService.getUserToken(),
4090
4089
  param: form.value.searchUser,
4091
4090
  };
4092
- this.userService.getStudent(request).subscribe((response) => {
4093
- if (response.data == null) {
4094
- this.userExists = false;
4095
- Swal.fire({
4096
- title: 'Oops...',
4097
- text: 'No hay usuarios con los parámetros ingresados',
4098
- icon: 'error',
4099
- });
4100
- }
4101
- else {
4102
- this.userExists = true;
4103
- this.allUsers = response.data;
4104
- console.log(response.data);
4105
- this.getRoleUser(13);
4106
- }
4107
- });
4108
- }
4109
- getRoleUser(codeRole) {
4110
- this.userService.getUserRoleByCode(codeRole).subscribe((response) => {
4111
- console.log(response.data);
4112
- console.log(response.data[0].role);
4113
- });
4091
+ if (form) {
4092
+ this.userService.getStudent(request).subscribe((response) => {
4093
+ if (response.data == null) {
4094
+ this.userExists = false;
4095
+ Swal.fire({
4096
+ title: 'Oops...',
4097
+ text: 'No hay usuarios con los parámetros ingresados',
4098
+ icon: 'error',
4099
+ });
4100
+ }
4101
+ else {
4102
+ this.userExists = true;
4103
+ this.allUsers = response.data;
4104
+ }
4105
+ });
4106
+ }
4107
+ else {
4108
+ Swal.fire({
4109
+ title: 'Oops...',
4110
+ text: 'Debe digitar un parámetro para realizar la búsqueda',
4111
+ icon: 'info',
4112
+ });
4113
+ }
4114
4114
  }
4115
4115
  }
4116
4116
  ModalReferredComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: ModalReferredComponent, deps: [{ token: i1$1.FormBuilder }, { token: BaseService }, { token: UserService }], target: i0.ɵɵFactoryTarget.Component });
@@ -4273,8 +4273,6 @@ class CodFormStepFiveComponent extends CodFormSteps {
4273
4273
  this.codFormStepFive.reset();
4274
4274
  }
4275
4275
  referredUser(data) {
4276
- console.log('step5');
4277
- console.log(data);
4278
4276
  this.modalVisible = false;
4279
4277
  if (data) {
4280
4278
  this.visbleReferred = true;
@@ -4424,9 +4422,7 @@ class CodFormComponent {
4424
4422
  createCOD(totalData) {
4425
4423
  this.isLoading = true;
4426
4424
  this.loaderMessage = 'Creando COD, espere un momento';
4427
- console.log('totaldata', totalData);
4428
4425
  let request = this.getCreateCOD(totalData);
4429
- console.log(request);
4430
4426
  this.commercialService.createCOD(request).subscribe({
4431
4427
  next: (response) => {
4432
4428
  if (response.message.code === 1) {
@@ -4510,7 +4506,6 @@ class CodFormComponent {
4510
4506
  academic_plan: data.filter(data => data.control === 'academic_plan')[0].value,
4511
4507
  code_refers: data.filter(data => data.control === 'code_refers')[0].value,
4512
4508
  };
4513
- console.log(request);
4514
4509
  return request;
4515
4510
  }
4516
4511
  changeStep(step) {