aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/forms/form-validators/video-report.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-01-20 19:22:15 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-01-20 19:22:15 +0100
commit4f8c0eb0e9356ee2782ea6eb12a92e4dc5f66127 (patch)
treebcef1232a565ceaf3d43415a0b08e53e30c236d7 /client/src/app/shared/forms/form-validators/video-report.ts
parent872a4c7cea861246cf84fa3686bd9d40c684535f (diff)
downloadPeerTube-4f8c0eb0e9356ee2782ea6eb12a92e4dc5f66127.tar.gz
PeerTube-4f8c0eb0e9356ee2782ea6eb12a92e4dc5f66127.tar.zst
PeerTube-4f8c0eb0e9356ee2782ea6eb12a92e4dc5f66127.zip
Client: add ability to report a video
Diffstat (limited to 'client/src/app/shared/forms/form-validators/video-report.ts')
-rw-r--r--client/src/app/shared/forms/form-validators/video-report.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/client/src/app/shared/forms/form-validators/video-report.ts b/client/src/app/shared/forms/form-validators/video-report.ts
new file mode 100644
index 000000000..036ee1721
--- /dev/null
+++ b/client/src/app/shared/forms/form-validators/video-report.ts
@@ -0,0 +1,10 @@
1import { Validators } from '@angular/forms';
2
3export const VIDEO_REPORT_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};