iptdevs-design-system 3.1.333 → 3.1.335
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.
|
@@ -4924,13 +4924,20 @@ class CodFormComponent {
|
|
|
4924
4924
|
}
|
|
4925
4925
|
else if (response.message.code === 3) {
|
|
4926
4926
|
console.log(response.data);
|
|
4927
|
-
|
|
4928
|
-
|
|
4927
|
+
let alertHtml = `
|
|
4928
|
+
<div class="my-custom-alert">
|
|
4929
4929
|
<h2>Warning!</h2>
|
|
4930
|
-
<p>{{response.data.warning}}</p>
|
|
4931
|
-
<button class="btn btn-primary">Aceptar</button>
|
|
4932
|
-
</div>
|
|
4933
4930
|
`;
|
|
4931
|
+
if (!response.data.warning.average_score) {
|
|
4932
|
+
alertHtml += `<p>No paso el promedio final o tuvo inasistencia en examenes finales</p><br>`;
|
|
4933
|
+
}
|
|
4934
|
+
if (!response.data.warning.non_attendance) {
|
|
4935
|
+
alertHtml += `<p>tuvo mas del 25% de inasistencias</p><br>`;
|
|
4936
|
+
}
|
|
4937
|
+
if (!response.data.warning.outstanding_payments) {
|
|
4938
|
+
alertHtml += `<p>Tiene pagos pendientes</p>`;
|
|
4939
|
+
}
|
|
4940
|
+
alertHtml += `</div>`;
|
|
4934
4941
|
Swal.fire({
|
|
4935
4942
|
html: alertHtml,
|
|
4936
4943
|
icon: 'warning',
|
|
@@ -4938,6 +4945,7 @@ class CodFormComponent {
|
|
|
4938
4945
|
confirmButtonText: 'Confirmar',
|
|
4939
4946
|
// cancelButtonText: 'Cancelar',
|
|
4940
4947
|
});
|
|
4948
|
+
this.isLoading = false;
|
|
4941
4949
|
}
|
|
4942
4950
|
else if (response.message.code === 4) {
|
|
4943
4951
|
this.isLoading = false;
|