From fd45e8f43c2638478599ca75632518054461da85 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 31 Oct 2017 11:52:52 +0100 Subject: Add video privacy setting --- client/src/app/videos/shared/video-edit.model.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'client/src/app/videos/shared/video-edit.model.ts') diff --git a/client/src/app/videos/shared/video-edit.model.ts b/client/src/app/videos/shared/video-edit.model.ts index e0b7bf130..88d23a59f 100644 --- a/client/src/app/videos/shared/video-edit.model.ts +++ b/client/src/app/videos/shared/video-edit.model.ts @@ -1,4 +1,5 @@ import { VideoDetails } from './video-details.model' +import { VideoPrivacy } from '../../../../../shared/models/videos/video-privacy.enum' export class VideoEdit { category: number @@ -9,6 +10,7 @@ export class VideoEdit { tags: string[] nsfw: boolean channel: number + privacy: VideoPrivacy uuid?: string id?: number @@ -23,6 +25,7 @@ export class VideoEdit { this.tags = videoDetails.tags this.nsfw = videoDetails.nsfw this.channel = videoDetails.channel.id + this.privacy = videoDetails.privacy } patch (values: Object) { @@ -40,7 +43,8 @@ export class VideoEdit { name: this.name, tags: this.tags, nsfw: this.nsfw, - channel: this.channel + channel: this.channel, + privacy: this.privacy } } } -- cgit v1.2.3