diff options
author | Chocobozzz <me@florianbigard.com> | 2018-03-26 09:48:10 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-26 09:48:20 +0200 |
commit | 53eb90c0ab584ee48774e15ee7c0e764cfe4559d (patch) | |
tree | 9eba75b6026f65b22083d9e3c15634074e924880 /client/src | |
parent | ae09ed2c6a4d22262b02870905d16211994662b6 (diff) | |
download | PeerTube-53eb90c0ab584ee48774e15ee7c0e764cfe4559d.tar.gz PeerTube-53eb90c0ab584ee48774e15ee7c0e764cfe4559d.tar.zst PeerTube-53eb90c0ab584ee48774e15ee7c0e764cfe4559d.zip |
Fix check comments params unit tests
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/shared/forms/form-validators/video-comment.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/shared/forms/form-validators/video-comment.ts b/client/src/app/shared/forms/form-validators/video-comment.ts index 42a97e300..290d83195 100644 --- a/client/src/app/shared/forms/form-validators/video-comment.ts +++ b/client/src/app/shared/forms/form-validators/video-comment.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Validators } from '@angular/forms' | 1 | import { Validators } from '@angular/forms' |
2 | 2 | ||
3 | export const VIDEO_COMMENT_TEXT = { | 3 | export const VIDEO_COMMENT_TEXT = { |
4 | VALIDATORS: [ Validators.required, Validators.minLength(2), Validators.maxLength(3000) ], | 4 | VALIDATORS: [ Validators.required, Validators.minLength(1), Validators.maxLength(3000) ], |
5 | MESSAGES: { | 5 | MESSAGES: { |
6 | 'required': 'Comment is required.', | 6 | 'required': 'Comment is required.', |
7 | 'minlength': 'Comment must be at least 2 characters long.', | 7 | 'minlength': 'Comment must be at least 2 characters long.', |