diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-18 15:03:46 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-09-08 08:41:48 +0200 |
commit | c5fe3434112e3aa551db014522c6c3a31eab0045 (patch) | |
tree | 88eaa58329e460ddc0baaa74c135cded3668d21c /client | |
parent | 6c38f40d966eb25e53ac38174153cb1fef0475f5 (diff) | |
download | PeerTube-c5fe3434112e3aa551db014522c6c3a31eab0045.tar.gz PeerTube-c5fe3434112e3aa551db014522c6c3a31eab0045.tar.zst PeerTube-c5fe3434112e3aa551db014522c6c3a31eab0045.zip |
Fix short description validator
Diffstat (limited to 'client')
-rw-r--r-- | client/src/app/shared/form-validators/custom-config-validators.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/form-validators/custom-config-validators.ts b/client/src/app/shared/form-validators/custom-config-validators.ts index ba8512e95..ff0813f7d 100644 --- a/client/src/app/shared/form-validators/custom-config-validators.ts +++ b/client/src/app/shared/form-validators/custom-config-validators.ts | |||
@@ -9,9 +9,9 @@ export const INSTANCE_NAME_VALIDATOR: BuildFormValidator = { | |||
9 | } | 9 | } |
10 | 10 | ||
11 | export const INSTANCE_SHORT_DESCRIPTION_VALIDATOR: BuildFormValidator = { | 11 | export const INSTANCE_SHORT_DESCRIPTION_VALIDATOR: BuildFormValidator = { |
12 | VALIDATORS: [ Validators.max(250) ], | 12 | VALIDATORS: [ Validators.maxLength(250) ], |
13 | MESSAGES: { | 13 | MESSAGES: { |
14 | max: $localize`Short description should not be longer than 250 characters.` | 14 | maxlength: $localize`Short description should not be longer than 250 characters.` |
15 | } | 15 | } |
16 | } | 16 | } |
17 | 17 | ||