iptdevs-design-system 3.1.332 → 3.1.334

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,26 @@ 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.average_score}</p>
4931
+ <p>${response.data.warning.non_attendance}</p>
4932
+ <p>${response.data.warning.outstanding_payments}</p>
4933
+
4934
+ </div>
4935
+ `;
4936
+ Swal.fire({
4937
+ html: alertHtml,
4938
+ icon: 'warning',
4939
+ showCancelButton: true,
4940
+ confirmButtonText: 'Confirmar',
4941
+ // cancelButtonText: 'Cancelar',
4942
+ });
4943
+ this.isLoading = false;
4944
+ }
4942
4945
  else if (response.message.code === 4) {
4943
4946
  this.isLoading = false;
4944
4947
  this.loaderMessage = '';