Plan Description is no longer required when creating a new plan

This commit is contained in:
Diamantis Tziotzios 2024-07-12 18:02:50 +03:00
parent 763461f758
commit df7a6586ce
2 changed files with 3 additions and 3 deletions

View File

@ -89,9 +89,9 @@
</div>
</div>
<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">
<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>
</div>
</div>

View File

@ -546,7 +546,7 @@ export class PlanEditorComponent extends BaseEditor<PlanEditorModel, Plan> imple
this.selectedBlueprint = data;
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) {
this.buildFormAfterBlueprintSelection();
this.nextStep();