diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-01-23 22:16:48 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-01-23 22:18:53 +0100 |
commit | 11ac88de40215783835cf6e6259ff0f6cee258dd (patch) | |
tree | 9bdb69c0a4e3621b9b185d30a8a63f1ac6e8fbfa /client/src/app/shared/forms/form-validators/video-abuse.ts | |
parent | 4f8c0eb0e9356ee2782ea6eb12a92e4dc5f66127 (diff) | |
download | PeerTube-11ac88de40215783835cf6e6259ff0f6cee258dd.tar.gz PeerTube-11ac88de40215783835cf6e6259ff0f6cee258dd.tar.zst PeerTube-11ac88de40215783835cf6e6259ff0f6cee258dd.zip |
Client: add basic support to report video abuses
Diffstat (limited to 'client/src/app/shared/forms/form-validators/video-abuse.ts')
-rw-r--r-- | client/src/app/shared/forms/form-validators/video-abuse.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/client/src/app/shared/forms/form-validators/video-abuse.ts b/client/src/app/shared/forms/form-validators/video-abuse.ts new file mode 100644 index 000000000..94a29a3b7 --- /dev/null +++ b/client/src/app/shared/forms/form-validators/video-abuse.ts | |||
@@ -0,0 +1,10 @@ | |||
1 | import { Validators } from '@angular/forms'; | ||
2 | |||
3 | export const VIDEO_ABUSE_REASON = { | ||
4 | VALIDATORS: [ Validators.required, Validators.minLength(2), Validators.maxLength(300) ], | ||
5 | MESSAGES: { | ||
6 | 'required': 'Report reason name is required.', | ||
7 | 'minlength': 'Report reson must be at least 2 characters long.', | ||
8 | 'maxlength': 'Report reson cannot be more than 300 characters long.' | ||
9 | } | ||
10 | }; | ||