@energycap/components 0.39.21-ECAP-25650-file-upload-validation-support.20240806-1611 → 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.
@@ -10615,11 +10615,11 @@ class PageBaseComponent {
|
|
10615
10615
|
* @param event
|
10616
10616
|
*/
|
10617
10617
|
async onSave(event) {
|
10618
|
-
// Show the saving overlay in case we have async validators in play
|
10619
|
-
this.showStatus(PageStatus.Saving);
|
10620
10618
|
this.formGroup.markAllAsTouched();
|
10621
10619
|
// If the form has pending async validators, wait for it them to complete before proceeding
|
10622
10620
|
if (this.formGroup.pending) {
|
10621
|
+
// Show the saving overlay when the form has pending async validators
|
10622
|
+
this.showStatus(PageStatus.Saving);
|
10623
10623
|
await this.formGroup.statusChanges.pipe(filter(status => status !== 'PENDING'), take(1), takeUntil(this.destroyed)).toPromise();
|
10624
10624
|
}
|
10625
10625
|
if (this.formGroup.valid) {
|