aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-26 15:52:11 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-26 15:52:11 +0200
commita265f7f30fe5f25e742c99c6d43e79dfd46bf2a9 (patch)
treed40096c994629a2ca6c1611063d825d86ca44d48 /client
parenta6d947a9f993a2c1e9ab57ff9edbd813dfe78e6d (diff)
downloadPeerTube-a265f7f30fe5f25e742c99c6d43e79dfd46bf2a9.tar.gz
PeerTube-a265f7f30fe5f25e742c99c6d43e79dfd46bf2a9.tar.zst
PeerTube-a265f7f30fe5f25e742c99c6d43e79dfd46bf2a9.zip
Increase video attributes length
Number of tags: 3 -> 5 Tag length: 10 -> 30 Video name: 50 -> 120 Video channel name: 50 -> 120
Diffstat (limited to 'client')
-rw-r--r--client/src/app/shared/forms/form-validators/video.ts8
-rw-r--r--client/src/app/videos/+video-edit/video-add.component.html2
-rw-r--r--client/src/app/videos/+video-edit/video-update.component.html2
-rw-r--r--client/src/app/videos/+video-edit/video-update.component.ts1
4 files changed, 7 insertions, 6 deletions
diff --git a/client/src/app/shared/forms/form-validators/video.ts b/client/src/app/shared/forms/form-validators/video.ts
index 213ab15db..286a11179 100644
--- a/client/src/app/shared/forms/form-validators/video.ts
+++ b/client/src/app/shared/forms/form-validators/video.ts
@@ -1,11 +1,11 @@
1import { Validators } from '@angular/forms' 1import { Validators } from '@angular/forms'
2 2
3export const VIDEO_NAME = { 3export const VIDEO_NAME = {
4 VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(50) ], 4 VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(120) ],
5 MESSAGES: { 5 MESSAGES: {
6 'required': 'Video name is required.', 6 'required': 'Video name is required.',
7 'minlength': 'Video name must be at least 3 characters long.', 7 'minlength': 'Video name must be at least 3 characters long.',
8 'maxlength': 'Video name cannot be more than 50 characters long.' 8 'maxlength': 'Video name cannot be more than 120 characters long.'
9 } 9 }
10} 10}
11 11
@@ -45,10 +45,10 @@ export const VIDEO_DESCRIPTION = {
45} 45}
46 46
47export const VIDEO_TAGS = { 47export const VIDEO_TAGS = {
48 VALIDATORS: [ Validators.minLength(2), Validators.maxLength(10) ], 48 VALIDATORS: [ Validators.minLength(2), Validators.maxLength(30) ],
49 MESSAGES: { 49 MESSAGES: {
50 'minlength': 'A tag should be more than 2 characters long.', 50 'minlength': 'A tag should be more than 2 characters long.',
51 'maxlength': 'A tag should be less than 10 characters long.' 51 'maxlength': 'A tag should be less than 30 characters long.'
52 } 52 }
53} 53}
54 54
diff --git a/client/src/app/videos/+video-edit/video-add.component.html b/client/src/app/videos/+video-edit/video-add.component.html
index 7946c0879..136c82a7c 100644
--- a/client/src/app/videos/+video-edit/video-add.component.html
+++ b/client/src/app/videos/+video-edit/video-add.component.html
@@ -77,7 +77,7 @@
77 <label class="label-tags">Tags</label> <span class="little-information">(press enter to add the tag)</span> 77 <label class="label-tags">Tags</label> <span class="little-information">(press enter to add the tag)</span>
78 <tag-input 78 <tag-input
79 [ngModel]="tags" [validators]="tagValidators" [errorMessages]="tagValidatorsMessages" 79 [ngModel]="tags" [validators]="tagValidators" [errorMessages]="tagValidatorsMessages"
80 formControlName="tags" maxItems="3" modelAsStrings="true" 80 formControlName="tags" maxItems="5" modelAsStrings="true"
81 ></tag-input> 81 ></tag-input>
82 </div> 82 </div>
83 83
diff --git a/client/src/app/videos/+video-edit/video-update.component.html b/client/src/app/videos/+video-edit/video-update.component.html
index 7f4faf21b..4ade5a671 100644
--- a/client/src/app/videos/+video-edit/video-update.component.html
+++ b/client/src/app/videos/+video-edit/video-update.component.html
@@ -65,7 +65,7 @@
65 <label for="tags" class="label-tags">Tags</label> <span class="little-information">(press enter to add the tag)</span> 65 <label for="tags" class="label-tags">Tags</label> <span class="little-information">(press enter to add the tag)</span>
66 <tag-input 66 <tag-input
67 [ngModel]="tags" [validators]="tagValidators" [errorMessages]="tagValidatorsMessages" 67 [ngModel]="tags" [validators]="tagValidators" [errorMessages]="tagValidatorsMessages"
68 formControlName="tags" maxItems="3" modelAsStrings="true" 68 formControlName="tags" maxItems="5" modelAsStrings="true"
69 ></tag-input> 69 ></tag-input>
70 </div> 70 </div>
71 71
diff --git a/client/src/app/videos/+video-edit/video-update.component.ts b/client/src/app/videos/+video-edit/video-update.component.ts
index 30390ac05..c4ae22896 100644
--- a/client/src/app/videos/+video-edit/video-update.component.ts
+++ b/client/src/app/videos/+video-edit/video-update.component.ts
@@ -131,3 +131,4 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
131 this.form.patchValue(this.video.toJSON()) 131 this.form.patchValue(this.video.toJSON())
132 } 132 }
133} 133}
134