aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-18 15:03:46 +0200
committerChocobozzz <me@florianbigard.com>2022-09-08 08:41:48 +0200
commitc5fe3434112e3aa551db014522c6c3a31eab0045 (patch)
tree88eaa58329e460ddc0baaa74c135cded3668d21c /client/src/app
parent6c38f40d966eb25e53ac38174153cb1fef0475f5 (diff)
downloadPeerTube-c5fe3434112e3aa551db014522c6c3a31eab0045.tar.gz
PeerTube-c5fe3434112e3aa551db014522c6c3a31eab0045.tar.zst
PeerTube-c5fe3434112e3aa551db014522c6c3a31eab0045.zip
Fix short description validator
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/shared/form-validators/custom-config-validators.ts4
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
11export const INSTANCE_SHORT_DESCRIPTION_VALIDATOR: BuildFormValidator = { 11export 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