X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fforms%2Fform-validators%2Fcustom-config-validators.service.ts;h=abcbca817ac52522baaddb0e63649826810c644c;hb=92128fff7e2ab6723640924288ce3e5c6baff5a8;hp=767e3f026844632ae6a786067a7c79196de6e8ec;hpb=8c559fad1e1c4c2ab7f1388c73200aa4c6256d74;p=github%2FChocobozzz%2FPeerTube.git 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..abcbca817 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 { } this.SIGNUP_LIMIT = { - VALIDATORS: [ Validators.required, Validators.min(1), Validators.pattern('[0-9]+') ], + VALIDATORS: [ Validators.required, Validators.min(-1), Validators.pattern('-?[0-9]+') ], MESSAGES: { 'required': this.i18n('Signup limit is required.'), 'min': this.i18n('Signup limit must be greater than 1.'), @@ -81,9 +81,8 @@ export class CustomConfigValidatorsService { } this.INDEX_URL = { - VALIDATORS: [ Validators.required, Validators.pattern(/^https:\/\//) ], + VALIDATORS: [ Validators.pattern(/^https:\/\//) ], MESSAGES: { - 'required': this.i18n('Index URL is required.'), 'pattern': this.i18n('Index URL should be a URL') } }