@energycap/components 0.39.21-ECAP-25650-file-upload-validation-support.20240806-0942 → 0.39.21-ECAP-25650-file-upload-validation-support.20240806-1029
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.
@@ -10598,6 +10598,8 @@ class PageBaseComponent {
|
|
10598
10598
|
* @param event
|
10599
10599
|
*/
|
10600
10600
|
async onSave(event) {
|
10601
|
+
// Show the saving overlay in case we have async validators in play
|
10602
|
+
this.showStatus(PageStatus.Saving);
|
10601
10603
|
this.formGroup.markAllAsTouched();
|
10602
10604
|
// If the form has pending async validators, wait for it them to complete before proceeding
|
10603
10605
|
if (this.formGroup.pending) {
|
@@ -10607,6 +10609,8 @@ class PageBaseComponent {
|
|
10607
10609
|
await this.save();
|
10608
10610
|
}
|
10609
10611
|
else {
|
10612
|
+
// Remove the saving overlay to display any errors
|
10613
|
+
this.showStatus(PageStatus.Loaded);
|
10610
10614
|
// Only show the banner with the generic message if the parent component hasn't already set one
|
10611
10615
|
// by implementing onSave for additional validation
|
10612
10616
|
if (this.errors === '') {
|