Skip to content
Snippets Groups Projects
Commit a35a8d4f authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Use max length validator instead of length of the input on credit description

parent f87d5b82
No related branches found
No related tags found
1 merge request!14Version 1.3.0
Pipeline #2860 passed
......@@ -33,7 +33,7 @@
<label class="label required" for="description">Description <span class="is-italic has-text-weight-normal">(150
caractères max)</span></label>
<div class="control">
<textarea class="textarea" formControlName="description" id="description" maxLength=150 required>
<textarea class="textarea" formControlName="description" id="description" required>
{{ credit.description }}
</textarea>
</div>
......
......@@ -79,7 +79,7 @@ export class CreditFormComponent implements OnInit {
{
id: [this.credit.id],
name: [this.credit.name, Validators.required],
description: [this.credit.description, Validators.required],
description: [this.credit.description, [Validators.required, Validators.maxLength(150)]],
logo: [this.credit.logo],
links: arr,
published: [this.credit.published],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment