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.
@@ -2618,13 +2618,19 @@ class BasicFormComponent {
2618
2618
  this.errorMessage = errorMessage || '';
2619
2619
  this.errorDetail = errorDetail || '';
2620
2620
  }
2621
- resetError() { this.setError(null, null, null); }
2621
+ resetError() {
2622
+ this.errorCode = NO_ERROR;
2623
+ this.errorFullCode = '';
2624
+ this.errorName = '';
2625
+ this.errorMessage = '';
2626
+ this.errorDetail = '';
2627
+ }
2622
2628
  getErrorType() { return this._errorType; }
2623
2629
  getErrorMessage() { return this.errorMessage; }
2624
2630
  getErrorDetail() { return this.errorDetail; }
2625
2631
  getErrorName() { return this.errorName; }
2626
2632
  getErrorFullCode() { return this.errorFullCode; }
2627
- getErrorCode() { return this._errorType; }
2633
+ getErrorCode() { return this.errorCode; }
2628
2634
  getFormParameter(name) {
2629
2635
  var _a, _b;
2630
2636
  return (name) ? ((_b = (_a = this.extraData) === null || _a === void 0 ? void 0 : _a[name]) !== null && _b !== void 0 ? _b : null) : null;
@@ -2774,9 +2780,6 @@ class BasicFormComponent {
2774
2780
  this.busy = true;
2775
2781
  const formActionResponse = yield this.formManagerService.execServerAction(actionDetail);
2776
2782
  this.busy = false;
2777
- if (formActionResponse && formActionResponse.error.errorType) {
2778
- console.log('Excepción no soportada');
2779
- }
2780
2783
  if (formActionResponse.hasError()) {
2781
2784
  const error = formActionResponse.error;
2782
2785
  this.errorCode = error.errorCode;