diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-31 11:52:52 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-31 11:53:13 +0100 |
commit | fd45e8f43c2638478599ca75632518054461da85 (patch) | |
tree | 01e1fb5ddad53bde8fb2c48f348fb8add51cfdb3 /client/src/app/videos/shared/video-edit.model.ts | |
parent | b7a485121d71c95fcf5e432e4cc745cf91af4f93 (diff) | |
download | PeerTube-fd45e8f43c2638478599ca75632518054461da85.tar.gz PeerTube-fd45e8f43c2638478599ca75632518054461da85.tar.zst PeerTube-fd45e8f43c2638478599ca75632518054461da85.zip |
Add video privacy setting
Diffstat (limited to 'client/src/app/videos/shared/video-edit.model.ts')
-rw-r--r-- | client/src/app/videos/shared/video-edit.model.ts | 6 |
1 files changed, 5 insertions, 1 deletions
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 @@ | |||
1 | import { VideoDetails } from './video-details.model' | 1 | import { VideoDetails } from './video-details.model' |
2 | import { VideoPrivacy } from '../../../../../shared/models/videos/video-privacy.enum' | ||
2 | 3 | ||
3 | export class VideoEdit { | 4 | export class VideoEdit { |
4 | category: number | 5 | category: number |
@@ -9,6 +10,7 @@ export class VideoEdit { | |||
9 | tags: string[] | 10 | tags: string[] |
10 | nsfw: boolean | 11 | nsfw: boolean |
11 | channel: number | 12 | channel: number |
13 | privacy: VideoPrivacy | ||
12 | uuid?: string | 14 | uuid?: string |
13 | id?: number | 15 | id?: number |
14 | 16 | ||
@@ -23,6 +25,7 @@ export class VideoEdit { | |||
23 | this.tags = videoDetails.tags | 25 | this.tags = videoDetails.tags |
24 | this.nsfw = videoDetails.nsfw | 26 | this.nsfw = videoDetails.nsfw |
25 | this.channel = videoDetails.channel.id | 27 | this.channel = videoDetails.channel.id |
28 | this.privacy = videoDetails.privacy | ||
26 | } | 29 | } |
27 | 30 | ||
28 | patch (values: Object) { | 31 | patch (values: Object) { |
@@ -40,7 +43,8 @@ export class VideoEdit { | |||
40 | name: this.name, | 43 | name: this.name, |
41 | tags: this.tags, | 44 | tags: this.tags, |
42 | nsfw: this.nsfw, | 45 | nsfw: this.nsfw, |
43 | channel: this.channel | 46 | channel: this.channel, |
47 | privacy: this.privacy | ||
44 | } | 48 | } |
45 | } | 49 | } |
46 | } | 50 | } |