aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/forms
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-03-27 21:11:37 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-03-27 21:11:37 +0200
commitd07137b90b2b2b0c1e93a6f0e7bf8719b133027c (patch)
tree0bb642609819bc1c8ff2761c848f8db3a9934d88 /client/src/app/shared/forms
parent6f0c39e2de400685b7baf8340b9e132f2659365a (diff)
downloadPeerTube-d07137b90b2b2b0c1e93a6f0e7bf8719b133027c.tar.gz
PeerTube-d07137b90b2b2b0c1e93a6f0e7bf8719b133027c.tar.zst
PeerTube-d07137b90b2b2b0c1e93a6f0e7bf8719b133027c.zip
Client: add support for video licences
Diffstat (limited to 'client/src/app/shared/forms')
-rw-r--r--client/src/app/shared/forms/form-validators/video.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/client/src/app/shared/forms/form-validators/video.ts b/client/src/app/shared/forms/form-validators/video.ts
index de5112238..50d7304b5 100644
--- a/client/src/app/shared/forms/form-validators/video.ts
+++ b/client/src/app/shared/forms/form-validators/video.ts
@@ -8,12 +8,21 @@ export const VIDEO_NAME = {
8 'maxlength': 'Video name cannot be more than 50 characters long.' 8 'maxlength': 'Video name cannot be more than 50 characters long.'
9 } 9 }
10}; 10};
11
11export const VIDEO_CATEGORY = { 12export const VIDEO_CATEGORY = {
12 VALIDATORS: [ Validators.required ], 13 VALIDATORS: [ Validators.required ],
13 MESSAGES: { 14 MESSAGES: {
14 'required': 'Video category is required.' 15 'required': 'Video category is required.'
15 } 16 }
16}; 17};
18
19export const VIDEO_LICENCE = {
20 VALIDATORS: [ Validators.required ],
21 MESSAGES: {
22 'required': 'Video licence is required.'
23 }
24};
25
17export const VIDEO_DESCRIPTION = { 26export const VIDEO_DESCRIPTION = {
18 VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(250) ], 27 VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(250) ],
19 MESSAGES: { 28 MESSAGES: {