iptdevs-design-system 3.1.199 → 3.1.201

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.
@@ -4661,6 +4661,25 @@ class CodFormComponent {
4661
4661
  this.localStorageCOD.clearData();
4662
4662
  this.okCreatedCOD.emit(true);
4663
4663
  }
4664
+ else if (response.message.code === 4) {
4665
+ this.isLoading = false;
4666
+ this.loaderMessage = '';
4667
+ const errorMessage = response.data.errors.map(error => error.message).join(', ');
4668
+ Swal.fire({
4669
+ title: 'Warning!',
4670
+ text: `Revisar el campo: "${errorMessage}"`,
4671
+ icon: 'error'
4672
+ });
4673
+ }
4674
+ else {
4675
+ this.isLoading = false;
4676
+ this.loaderMessage = '';
4677
+ Swal.fire({
4678
+ title: 'Warning!',
4679
+ text: response.message.message,
4680
+ icon: 'error'
4681
+ });
4682
+ }
4664
4683
  },
4665
4684
  error: (err) => {
4666
4685
  this.isLoading = false;