diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-03-27 21:11:37 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-03-27 21:11:37 +0200 |
commit | d07137b90b2b2b0c1e93a6f0e7bf8719b133027c (patch) | |
tree | 0bb642609819bc1c8ff2761c848f8db3a9934d88 /client/src/app/shared | |
parent | 6f0c39e2de400685b7baf8340b9e132f2659365a (diff) | |
download | PeerTube-d07137b90b2b2b0c1e93a6f0e7bf8719b133027c.tar.gz PeerTube-d07137b90b2b2b0c1e93a6f0e7bf8719b133027c.tar.zst PeerTube-d07137b90b2b2b0c1e93a6f0e7bf8719b133027c.zip |
Client: add support for video licences
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/forms/form-validators/video.ts | 9 |
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 | |||
11 | export const VIDEO_CATEGORY = { | 12 | export 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 | |||
19 | export const VIDEO_LICENCE = { | ||
20 | VALIDATORS: [ Validators.required ], | ||
21 | MESSAGES: { | ||
22 | 'required': 'Video licence is required.' | ||
23 | } | ||
24 | }; | ||
25 | |||
17 | export const VIDEO_DESCRIPTION = { | 26 | export 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: { |