tuain-ng-forms-lib 13.0.14 → 13.0.15

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.
@@ -2522,13 +2522,19 @@ class BasicFormComponent {
2522
2522
  this.errorMessage = errorMessage || '';
2523
2523
  this.errorDetail = errorDetail || '';
2524
2524
  }
2525
- resetError() { this.setError(null, null, null); }
2525
+ resetError() {
2526
+ this.errorCode = NO_ERROR;
2527
+ this.errorFullCode = '';
2528
+ this.errorName = '';
2529
+ this.errorMessage = '';
2530
+ this.errorDetail = '';
2531
+ }
2526
2532
  getErrorType() { return this._errorType; }
2527
2533
  getErrorMessage() { return this.errorMessage; }
2528
2534
  getErrorDetail() { return this.errorDetail; }
2529
2535
  getErrorName() { return this.errorName; }
2530
2536
  getErrorFullCode() { return this.errorFullCode; }
2531
- getErrorCode() { return this._errorType; }
2537
+ getErrorCode() { return this.errorCode; }
2532
2538
  getFormParameter(name) {
2533
2539
  return (name) ? (this.extraData?.[name] ?? null) : null;
2534
2540
  }
@@ -2667,9 +2673,6 @@ class BasicFormComponent {
2667
2673
  this.busy = true;
2668
2674
  const formActionResponse = await this.formManagerService.execServerAction(actionDetail);
2669
2675
  this.busy = false;
2670
- if (formActionResponse && formActionResponse.error.errorType) {
2671
- console.log('Excepción no soportada');
2672
- }
2673
2676
  if (formActionResponse.hasError()) {
2674
2677
  const error = formActionResponse.error;
2675
2678
  this.errorCode = error.errorCode;