diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-12-07 11:15:19 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-12-07 11:15:19 +0100 |
commit | ff249f499ccca2e37757f338384e7ba44c906a69 (patch) | |
tree | cb8f88c105536e5edf4bf02030edecfe6b6c0d17 /client/src/app/shared | |
parent | 59aa1e5e7541f604363d2a1ebfd670a5d1db245f (diff) | |
download | PeerTube-ff249f499ccca2e37757f338384e7ba44c906a69.tar.gz PeerTube-ff249f499ccca2e37757f338384e7ba44c906a69.tar.zst PeerTube-ff249f499ccca2e37757f338384e7ba44c906a69.zip |
Move video form inside a component
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/forms/form-validators/video.ts | 6 |
1 files changed, 6 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 65f11f5da..8e512e8c8 100644 --- a/client/src/app/shared/forms/form-validators/video.ts +++ b/client/src/app/shared/forms/form-validators/video.ts | |||
@@ -1,5 +1,11 @@ | |||
1 | import { Validators } from '@angular/forms' | 1 | import { Validators } from '@angular/forms' |
2 | 2 | ||
3 | export type ValidatorMessage = { | ||
4 | [ id: string ]: { | ||
5 | [ error: string ]: string | ||
6 | } | ||
7 | } | ||
8 | |||
3 | export const VIDEO_NAME = { | 9 | export const VIDEO_NAME = { |
4 | VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(120) ], | 10 | VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(120) ], |
5 | MESSAGES: { | 11 | MESSAGES: { |