iptdevs-design-system 3.1.331 → 3.1.333

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.
@@ -4868,23 +4868,6 @@ class CodFormComponent {
4868
4868
  this.localStorageCOD.clearData();
4869
4869
  this.okCreatedCOD.emit(true);
4870
4870
  }
4871
- else if (response.message.code === 3) {
4872
- const alertHtml = `
4873
- <div class="my-custom-alert">
4874
- <!-- Aquí puedes agregar el contenido HTML que desees -->
4875
- <h2>Título de la Alerta Personalizada</h2>
4876
- <p>Este es un componente personalizado simulado con Swal</p>
4877
- <button class="btn btn-primary">Aceptar</button>
4878
- </div>
4879
- `;
4880
- Swal.fire({
4881
- html: alertHtml,
4882
- icon: 'warning',
4883
- showCancelButton: true,
4884
- confirmButtonText: 'Confirmar',
4885
- // cancelButtonText: 'Cancelar',
4886
- });
4887
- }
4888
4871
  else if (response.message.code === 4) {
4889
4872
  this.isLoading = false;
4890
4873
  this.loaderMessage = '';
@@ -4939,6 +4922,23 @@ class CodFormComponent {
4939
4922
  this.localStorageCOD.clearData();
4940
4923
  this.okCreatedCOD.emit(true);
4941
4924
  }
4925
+ else if (response.message.code === 3) {
4926
+ console.log(response.data);
4927
+ const alertHtml = `
4928
+ <div class="my-custom-alert">
4929
+ <h2>Warning!</h2>
4930
+ <p>{{response.data.warning}}</p>
4931
+ <button class="btn btn-primary">Aceptar</button>
4932
+ </div>
4933
+ `;
4934
+ Swal.fire({
4935
+ html: alertHtml,
4936
+ icon: 'warning',
4937
+ showCancelButton: true,
4938
+ confirmButtonText: 'Confirmar',
4939
+ // cancelButtonText: 'Cancelar',
4940
+ });
4941
+ }
4942
4942
  else if (response.message.code === 4) {
4943
4943
  this.isLoading = false;
4944
4944
  this.loaderMessage = '';
@@ -5814,7 +5814,7 @@ class AcademicService extends IPTGeneralService {
5814
5814
  return this.http.post(serviceUrl, this.httpOptions);
5815
5815
  }
5816
5816
  getCodBcourseByModalityAndlevelEnglishAndCourseType(params) {
5817
- let serviceUrl = this.SERVICE_URL + 'post/course/obtain/by/modality';
5817
+ let serviceUrl = this.SERVICE_URL + 'obtain/courses/by/level/and/type/course/renovation/modality';
5818
5818
  this.generateRequestParams(params);
5819
5819
  return this.http.post(serviceUrl, this.httpOptions);
5820
5820
  }