ui fix
This commit is contained in:
parent
93cbd788f5
commit
f68c79fc21
|
@ -536,7 +536,7 @@ export class PlanEditorComponent extends BaseEditor<PlanEditorModel, Plan> imple
|
||||||
|
|
||||||
hasErrors(sectionId: string): boolean {
|
hasErrors(sectionId: string): boolean {
|
||||||
const formControlBySection = this.sectionToFieldsMap?.get(sectionId);
|
const formControlBySection = this.sectionToFieldsMap?.get(sectionId);
|
||||||
if (formControlBySection == null || this.formGroup == null) return false;
|
if (formControlBySection == null || this.formGroup == null || ((this.formGroup?.disabled??false)==true || (!this.isNew && !this.canSave))) return false;
|
||||||
|
|
||||||
for (let controlName of formControlBySection.fieldControlNames) {
|
for (let controlName of formControlBySection.fieldControlNames) {
|
||||||
if (this.isFormControlValid(controlName) === false) {
|
if (this.isFormControlValid(controlName) === false) {
|
||||||
|
|
Loading…
Reference in New Issue