X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fforms%2Fform-validators%2Fvideo-validators.service.ts;h=81ed0666f11f41693c741ee80a3d6e5b3be0fc0a;hb=d23e6a1c97a6ae3ca8d340a8c9adad268a5be57e;hp=76fc5cf04318efa12faa86f552b05485c754c9f4;hpb=e309822b93d9b69f30cbe830ef3d09dfdb2c13b2;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/forms/form-validators/video-validators.service.ts b/client/src/app/shared/forms/form-validators/video-validators.service.ts index 76fc5cf04..81ed0666f 100644 --- a/client/src/app/shared/forms/form-validators/video-validators.service.ts +++ b/client/src/app/shared/forms/form-validators/video-validators.service.ts @@ -15,6 +15,7 @@ export class VideoValidatorsService { readonly VIDEO_DESCRIPTION: BuildFormValidator readonly VIDEO_TAGS: BuildFormValidator readonly VIDEO_SUPPORT: BuildFormValidator + readonly VIDEO_SCHEDULE_PUBLICATION_AT: BuildFormValidator constructor (private i18n: I18n) { @@ -78,10 +79,17 @@ export class VideoValidatorsService { } this.VIDEO_SUPPORT = { - VALIDATORS: [ Validators.minLength(3), Validators.maxLength(500) ], + VALIDATORS: [ Validators.minLength(3), Validators.maxLength(1000) ], MESSAGES: { 'minlength': this.i18n('Video support must be at least 3 characters long.'), - 'maxlength': this.i18n('Video support cannot be more than 500 characters long.') + 'maxlength': this.i18n('Video support cannot be more than 1000 characters long.') + } + } + + this.VIDEO_SCHEDULE_PUBLICATION_AT = { + VALIDATORS: [ ], + MESSAGES: { + 'required': this.i18n('A date is required to schedule video update.') } } }