Plan Description is no longer required when creating a new plan

This commit is contained in:
Diamantis Tziotzios 2024-07-16 13:15:01 +03:00
parent 210e3bb552
commit a9c675880f
2 changed files with 3 additions and 3 deletions

View File

@ -89,9 +89,9 @@
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="heading2 col-12">{{'PLAN-EDITOR.FIELDS.DESCRIPTION' | translate}} *</div> <div class="heading2 col-12">{{'PLAN-EDITOR.FIELDS.DESCRIPTION' | translate}}</div>
<div class="col-12"> <div class="col-12">
<rich-text-editor-component [form]="formGroup.get('description')" placeholder="{{'PLAN-EDITOR.PLACEHOLDER.DESCRIPTION' | translate}}" [required]="true"> <rich-text-editor-component [form]="formGroup.get('description')" placeholder="{{'PLAN-EDITOR.PLACEHOLDER.DESCRIPTION' | translate}}" [required]="false">
</rich-text-editor-component> </rich-text-editor-component>
</div> </div>
</div> </div>

View File

@ -579,7 +579,7 @@ export class PlanEditorComponent extends BaseEditor<PlanEditorModel, Plan> imple
this.selectedBlueprint = data; this.selectedBlueprint = data;
this.formGroup.get('blueprint').setValue(this.selectedBlueprint.id); this.formGroup.get('blueprint').setValue(this.selectedBlueprint.id);
const goToNextStep: boolean = this.formGroup.get('label').valid && this.formGroup.get('description').valid; const goToNextStep: boolean = this.formGroup.get('label').valid;
if (goToNextStep) { if (goToNextStep) {
this.buildFormAfterBlueprintSelection(); this.buildFormAfterBlueprintSelection();
this.nextStep(); this.nextStep();