From f68c79fc21425ef5ce655f84b96ebb98881f6dc3 Mon Sep 17 00:00:00 2001 From: "CITE\\spapacharalampous" Date: Thu, 18 Jul 2024 17:23:56 +0300 Subject: [PATCH] ui fix --- .../app/ui/plan/plan-editor-blueprint/plan-editor.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/ui/plan/plan-editor-blueprint/plan-editor.component.ts b/frontend/src/app/ui/plan/plan-editor-blueprint/plan-editor.component.ts index d4d3d4473..c4c51bc29 100644 --- a/frontend/src/app/ui/plan/plan-editor-blueprint/plan-editor.component.ts +++ b/frontend/src/app/ui/plan/plan-editor-blueprint/plan-editor.component.ts @@ -536,7 +536,7 @@ export class PlanEditorComponent extends BaseEditor imple hasErrors(sectionId: string): boolean { 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) { if (this.isFormControlValid(controlName) === false) {