aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/video
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/video')
-rw-r--r--client/src/app/shared/video/video-details.model.ts1
-rw-r--r--client/src/app/shared/video/video-edit.model.ts3
-rw-r--r--client/src/app/shared/video/video.service.ts1
3 files changed, 5 insertions, 0 deletions
diff --git a/client/src/app/shared/video/video-details.model.ts b/client/src/app/shared/video/video-details.model.ts
index c746bfd66..4e4f64c7b 100644
--- a/client/src/app/shared/video/video-details.model.ts
+++ b/client/src/app/shared/video/video-details.model.ts
@@ -57,6 +57,7 @@ export class VideoDetails extends Video implements VideoDetailsServerModel {
57 this.channel = hash.channel 57 this.channel = hash.channel
58 this.account = hash.account 58 this.account = hash.account
59 this.tags = hash.tags 59 this.tags = hash.tags
60 this.support = hash.support
60 this.commentsEnabled = hash.commentsEnabled 61 this.commentsEnabled = hash.commentsEnabled
61 62
62 this.likesPercent = (this.likes / (this.likes + this.dislikes)) * 100 63 this.likesPercent = (this.likes / (this.likes + this.dislikes)) * 100
diff --git a/client/src/app/shared/video/video-edit.model.ts b/client/src/app/shared/video/video-edit.model.ts
index c39252f46..a8bbb63eb 100644
--- a/client/src/app/shared/video/video-edit.model.ts
+++ b/client/src/app/shared/video/video-edit.model.ts
@@ -12,6 +12,7 @@ export class VideoEdit {
12 commentsEnabled: boolean 12 commentsEnabled: boolean
13 channel: number 13 channel: number
14 privacy: VideoPrivacy 14 privacy: VideoPrivacy
15 support: string
15 thumbnailfile?: any 16 thumbnailfile?: any
16 previewfile?: any 17 previewfile?: any
17 thumbnailUrl: string 18 thumbnailUrl: string
@@ -33,6 +34,7 @@ export class VideoEdit {
33 this.commentsEnabled = videoDetails.commentsEnabled 34 this.commentsEnabled = videoDetails.commentsEnabled
34 this.channel = videoDetails.channel.id 35 this.channel = videoDetails.channel.id
35 this.privacy = videoDetails.privacy 36 this.privacy = videoDetails.privacy
37 this.support = videoDetails.support
36 this.thumbnailUrl = videoDetails.thumbnailUrl 38 this.thumbnailUrl = videoDetails.thumbnailUrl
37 this.previewUrl = videoDetails.previewUrl 39 this.previewUrl = videoDetails.previewUrl
38 } 40 }
@@ -50,6 +52,7 @@ export class VideoEdit {
50 licence: this.licence, 52 licence: this.licence,
51 language: this.language, 53 language: this.language,
52 description: this.description, 54 description: this.description,
55 support: this.support,
53 name: this.name, 56 name: this.name,
54 tags: this.tags, 57 tags: this.tags,
55 nsfw: this.nsfw, 58 nsfw: this.nsfw,
diff --git a/client/src/app/shared/video/video.service.ts b/client/src/app/shared/video/video.service.ts
index 2e7138cd1..99da14779 100644
--- a/client/src/app/shared/video/video.service.ts
+++ b/client/src/app/shared/video/video.service.ts
@@ -62,6 +62,7 @@ export class VideoService {
62 tags: video.tags, 62 tags: video.tags,
63 nsfw: video.nsfw, 63 nsfw: video.nsfw,
64 commentsEnabled: video.commentsEnabled, 64 commentsEnabled: video.commentsEnabled,
65 support: video.support,
65 thumbnailfile: video.thumbnailfile, 66 thumbnailfile: video.thumbnailfile,
66 previewfile: video.previewfile 67 previewfile: video.previewfile
67 } 68 }