Fix issue with Dataset Editor when trying to save an incomplete or invalid form, the save buttons stay locked (ref #7725)
This commit is contained in:
parent
a5061759b8
commit
afa602bf39
|
@ -775,6 +775,7 @@ export class DatasetWizardComponent extends CheckDeactivateBaseComponent impleme
|
|||
const errorMessages = this._buildSemiFormErrorMessages();
|
||||
this.showValidationErrorsDialog(undefined, errorMessages);
|
||||
this.hintErrors = true;
|
||||
this.saving = false;
|
||||
return;
|
||||
}
|
||||
this.submit(saveType);
|
||||
|
@ -853,7 +854,7 @@ export class DatasetWizardComponent extends CheckDeactivateBaseComponent impleme
|
|||
|
||||
saveFinalize() {
|
||||
// this.formService.touchAllFormFields(this.formGroup);
|
||||
|
||||
this.saving = true;
|
||||
if (!this.isSemiFormValid(this.formGroup) || (this.table0fContents && this.table0fContents.hasVisibleInvalidFields())) {
|
||||
// this.showValidationErrorsDialog();
|
||||
this.dialog.open(FormValidationErrorsDialogComponent, {
|
||||
|
@ -865,6 +866,7 @@ export class DatasetWizardComponent extends CheckDeactivateBaseComponent impleme
|
|||
|
||||
this.touchForm();
|
||||
this.hintErrors = true;
|
||||
this.saving = false;
|
||||
return;
|
||||
}
|
||||
const dialogRef = this.dialog.open(ConfirmationDialogComponent, {
|
||||
|
|
Loading…
Reference in New Issue