aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/video-add/video-add.component.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-04-04 21:37:03 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-04-04 21:37:03 +0200
commit92fb909c9b4a92a00b0d0da7629e6fb003de281b (patch)
tree8119c6720d5dec0474983501843f1e699fde150a /client/src/app/videos/video-add/video-add.component.ts
parent1d49e1e27d63db1dfc9a7fd28c9902f488831a89 (diff)
downloadPeerTube-92fb909c9b4a92a00b0d0da7629e6fb003de281b.tar.gz
PeerTube-92fb909c9b4a92a00b0d0da7629e6fb003de281b.tar.zst
PeerTube-92fb909c9b4a92a00b0d0da7629e6fb003de281b.zip
Client: Handle NSFW video
Diffstat (limited to 'client/src/app/videos/video-add/video-add.component.ts')
-rw-r--r--client/src/app/videos/video-add/video-add.component.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/app/videos/video-add/video-add.component.ts b/client/src/app/videos/video-add/video-add.component.ts
index 8fae233d3..ea7ad2e5c 100644
--- a/client/src/app/videos/video-add/video-add.component.ts
+++ b/client/src/app/videos/video-add/video-add.component.ts
@@ -71,6 +71,7 @@ export class VideoAddComponent extends FormReactive implements OnInit {
71 buildForm() { 71 buildForm() {
72 this.form = this.formBuilder.group({ 72 this.form = this.formBuilder.group({
73 name: [ '', VIDEO_NAME.VALIDATORS ], 73 name: [ '', VIDEO_NAME.VALIDATORS ],
74 nsfw: [ false ],
74 category: [ '', VIDEO_CATEGORY.VALIDATORS ], 75 category: [ '', VIDEO_CATEGORY.VALIDATORS ],
75 licence: [ '', VIDEO_LICENCE.VALIDATORS ], 76 licence: [ '', VIDEO_LICENCE.VALIDATORS ],
76 description: [ '', VIDEO_DESCRIPTION.VALIDATORS ], 77 description: [ '', VIDEO_DESCRIPTION.VALIDATORS ],
@@ -93,12 +94,14 @@ export class VideoAddComponent extends FormReactive implements OnInit {
93 94
94 this.uploader.onBuildItemForm = (item, form) => { 95 this.uploader.onBuildItemForm = (item, form) => {
95 const name = this.form.value['name']; 96 const name = this.form.value['name'];
97 const nsfw = this.form.value['nsfw'];
96 const category = this.form.value['category']; 98 const category = this.form.value['category'];
97 const licence = this.form.value['licence']; 99 const licence = this.form.value['licence'];
98 const description = this.form.value['description']; 100 const description = this.form.value['description'];
99 101
100 form.append('name', name); 102 form.append('name', name);
101 form.append('category', category); 103 form.append('category', category);
104 form.append('nsfw', nsfw);
102 form.append('licence', licence); 105 form.append('licence', licence);
103 form.append('description', description); 106 form.append('description', description);
104 107