From ceb7e1738435f323c166c650e286267daa908671 Mon Sep 17 00:00:00 2001 From: Kazumen Date: Wed, 10 Jul 2024 14:47:33 +0300 Subject: [PATCH] Change short title to required field --- .../create-about-form/create-about-form.component.html | 2 +- .../create-about-form/create-about-form.component.ts | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app/shell/personal-cabinet/provider/create-workshop/create-about-form/create-about-form.component.html b/src/app/shell/personal-cabinet/provider/create-workshop/create-about-form/create-about-form.component.html index 0af4ccdaf1..8cb4235e3c 100644 --- a/src/app/shell/personal-cabinet/provider/create-workshop/create-about-form/create-about-form.component.html +++ b/src/app/shell/personal-cabinet/provider/create-workshop/create-about-form/create-about-form.component.html @@ -22,7 +22,7 @@ [maxCharacters]="validationConstants.INPUT_LENGTH_60"> - + diff --git a/src/app/shell/personal-cabinet/provider/create-workshop/create-about-form/create-about-form.component.ts b/src/app/shell/personal-cabinet/provider/create-workshop/create-about-form/create-about-form.component.ts index 7a2452c354..cf32b5dc0b 100644 --- a/src/app/shell/personal-cabinet/provider/create-workshop/create-about-form/create-about-form.component.ts +++ b/src/app/shell/personal-cabinet/provider/create-workshop/create-about-form/create-about-form.component.ts @@ -160,7 +160,12 @@ export class CreateAboutFormComponent implements OnInit, OnDestroy { Validators.maxLength(ValidationConstants.INPUT_LENGTH_60), Validators.pattern(MUST_CONTAIN_LETTERS) ]), - shortTitle: new FormControl('', [Validators.maxLength(ValidationConstants.INPUT_LENGTH_60)]), + shortTitle: new FormControl('', [ + Validators.maxLength(ValidationConstants.INPUT_LENGTH_60), + Validators.required, + Validators.pattern(MUST_CONTAIN_LETTERS), + Validators.minLength(ValidationConstants.INPUT_LENGTH_1) + ]), phone: new FormControl('', [Validators.required, Validators.minLength(ValidationConstants.PHONE_LENGTH)]), email: new FormControl('', [Validators.required, FormValidators.email]), minAge: new FormControl(null, [Validators.required]),