diff options
Diffstat (limited to 'client/src/app/shared/video/video-edit.model.ts')
-rw-r--r-- | client/src/app/shared/video/video-edit.model.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/client/src/app/shared/video/video-edit.model.ts b/client/src/app/shared/video/video-edit.model.ts index ad2929db5..f045a3acd 100644 --- a/client/src/app/shared/video/video-edit.model.ts +++ b/client/src/app/shared/video/video-edit.model.ts | |||
@@ -1,7 +1,8 @@ | |||
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 | import { VideoPrivacy } from '../../../../../shared/models/videos/video-privacy.enum' |
3 | import { VideoUpdate } from '../../../../../shared/models/videos' | ||
3 | 4 | ||
4 | export class VideoEdit { | 5 | export class VideoEdit implements VideoUpdate { |
5 | category: number | 6 | category: number |
6 | licence: number | 7 | licence: number |
7 | language: string | 8 | language: string |
@@ -10,6 +11,7 @@ export class VideoEdit { | |||
10 | tags: string[] | 11 | tags: string[] |
11 | nsfw: boolean | 12 | nsfw: boolean |
12 | commentsEnabled: boolean | 13 | commentsEnabled: boolean |
14 | waitTranscoding: boolean | ||
13 | channelId: number | 15 | channelId: number |
14 | privacy: VideoPrivacy | 16 | privacy: VideoPrivacy |
15 | support: string | 17 | support: string |
@@ -32,6 +34,7 @@ export class VideoEdit { | |||
32 | this.tags = videoDetails.tags | 34 | this.tags = videoDetails.tags |
33 | this.nsfw = videoDetails.nsfw | 35 | this.nsfw = videoDetails.nsfw |
34 | this.commentsEnabled = videoDetails.commentsEnabled | 36 | this.commentsEnabled = videoDetails.commentsEnabled |
37 | this.waitTranscoding = videoDetails.waitTranscoding | ||
35 | this.channelId = videoDetails.channel.id | 38 | this.channelId = videoDetails.channel.id |
36 | this.privacy = videoDetails.privacy.id | 39 | this.privacy = videoDetails.privacy.id |
37 | this.support = videoDetails.support | 40 | this.support = videoDetails.support |
@@ -42,7 +45,7 @@ export class VideoEdit { | |||
42 | 45 | ||
43 | patch (values: Object) { | 46 | patch (values: Object) { |
44 | Object.keys(values).forEach((key) => { | 47 | Object.keys(values).forEach((key) => { |
45 | this[key] = values[key] | 48 | this[ key ] = values[ key ] |
46 | }) | 49 | }) |
47 | } | 50 | } |
48 | 51 | ||
@@ -57,6 +60,7 @@ export class VideoEdit { | |||
57 | tags: this.tags, | 60 | tags: this.tags, |
58 | nsfw: this.nsfw, | 61 | nsfw: this.nsfw, |
59 | commentsEnabled: this.commentsEnabled, | 62 | commentsEnabled: this.commentsEnabled, |
63 | waitTranscoding: this.waitTranscoding, | ||
60 | channelId: this.channelId, | 64 | channelId: this.channelId, |
61 | privacy: this.privacy | 65 | privacy: this.privacy |
62 | } | 66 | } |