@energycap/components 0.39.21-ECAP-25650-file-upload-validation-support.20240807-1239 → 0.39.21-ECAP-25650-file-upload-validation-support.20240807-1717

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.
@@ -737,9 +737,6 @@ class ValidationMessageService {
737
737
  case 'invalidFile':
738
738
  translationObservables.push(this.translate.get('is invalid'));
739
739
  break;
740
- case 'uploadFailed':
741
- translationObservables.push(this.translate.get('UploadFailedValidationMessage_SC'));
742
- break;
743
740
  default:
744
741
  break;
745
742
  }
@@ -10618,11 +10615,11 @@ class PageBaseComponent {
10618
10615
  * @param event
10619
10616
  */
10620
10617
  async onSave(event) {
10621
- // Show the saving overlay in case we have async validators in play
10622
- this.showStatus(PageStatus.Saving);
10623
10618
  this.formGroup.markAllAsTouched();
10624
10619
  // If the form has pending async validators, wait for it them to complete before proceeding
10625
10620
  if (this.formGroup.pending) {
10621
+ // Show the saving overlay when the form has pending async validators
10622
+ this.showStatus(PageStatus.Saving);
10626
10623
  await this.formGroup.statusChanges.pipe(filter(status => status !== 'PENDING'), take(1), takeUntil(this.destroyed)).toPromise();
10627
10624
  }
10628
10625
  if (this.formGroup.valid) {