From 92fb909c9b4a92a00b0d0da7629e6fb003de281b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 4 Apr 2017 21:37:03 +0200 Subject: Client: Handle NSFW video --- client/src/app/videos/video-add/video-add.component.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client/src/app/videos/video-add/video-add.component.ts') 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 { buildForm() { this.form = this.formBuilder.group({ name: [ '', VIDEO_NAME.VALIDATORS ], + nsfw: [ false ], category: [ '', VIDEO_CATEGORY.VALIDATORS ], licence: [ '', VIDEO_LICENCE.VALIDATORS ], description: [ '', VIDEO_DESCRIPTION.VALIDATORS ], @@ -93,12 +94,14 @@ export class VideoAddComponent extends FormReactive implements OnInit { this.uploader.onBuildItemForm = (item, form) => { const name = this.form.value['name']; + const nsfw = this.form.value['nsfw']; const category = this.form.value['category']; const licence = this.form.value['licence']; const description = this.form.value['description']; form.append('name', name); form.append('category', category); + form.append('nsfw', nsfw); form.append('licence', licence); form.append('description', description); -- cgit v1.2.3