aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-01-31 00:59:41 +0100
committerChocobozzz <chocobozzz@cpy.re>2020-01-31 08:56:20 +0100
commite40afb5bc486ff2ce1e5f0a21df7e4e32c344b47 (patch)
tree5def69c06e9bb0b0f9f5fbdbfe5afb1a4918f47c /client/src/app/shared
parent43482ec712d4298e18e4c7642d115ed78a345681 (diff)
downloadPeerTube-e40afb5bc486ff2ce1e5f0a21df7e4e32c344b47.tar.gz
PeerTube-e40afb5bc486ff2ce1e5f0a21df7e4e32c344b47.tar.zst
PeerTube-e40afb5bc486ff2ce1e5f0a21df7e4e32c344b47.zip
Fix signup limit validator, and add warning message.
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/forms/form-validators/custom-config-validators.service.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/shared/forms/form-validators/custom-config-validators.service.ts b/client/src/app/shared/forms/form-validators/custom-config-validators.service.ts
index 767e3f026..d20754d11 100644
--- a/client/src/app/shared/forms/form-validators/custom-config-validators.service.ts
+++ b/client/src/app/shared/forms/form-validators/custom-config-validators.service.ts
@@ -56,7 +56,7 @@ export class CustomConfigValidatorsService {
56 } 56 }
57 57
58 this.SIGNUP_LIMIT = { 58 this.SIGNUP_LIMIT = {
59 VALIDATORS: [ Validators.required, Validators.min(1), Validators.pattern('[0-9]+') ], 59 VALIDATORS: [ Validators.required, Validators.min(-1), Validators.pattern('-?[0-9]+') ],
60 MESSAGES: { 60 MESSAGES: {
61 'required': this.i18n('Signup limit is required.'), 61 'required': this.i18n('Signup limit is required.'),
62 'min': this.i18n('Signup limit must be greater than 1.'), 62 'min': this.i18n('Signup limit must be greater than 1.'),