aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/video
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-03-11 16:23:33 +0100
committerChocobozzz <chocobozzz@cpy.re>2019-03-18 11:17:59 +0100
commitc5a1ae500e68b759f76851552be6dd10631d34f4 (patch)
treef741daceab3b506f18f7cc14492a25425ebdf68d /client/src/app/shared/video
parentf0a3988066f72a28bb44520af072f18d91d77dde (diff)
downloadPeerTube-c5a1ae500e68b759f76851552be6dd10631d34f4.tar.gz
PeerTube-c5a1ae500e68b759f76851552be6dd10631d34f4.tar.zst
PeerTube-c5a1ae500e68b759f76851552be6dd10631d34f4.zip
Playlist videos component
Diffstat (limited to 'client/src/app/shared/video')
-rw-r--r--client/src/app/shared/video/video.model.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/shared/video/video.model.ts b/client/src/app/shared/video/video.model.ts
index c936a8207..95b5e3671 100644
--- a/client/src/app/shared/video/video.model.ts
+++ b/client/src/app/shared/video/video.model.ts
@@ -1,5 +1,5 @@
1import { User } from '../' 1import { User } from '../'
2import { Video as VideoServerModel, VideoPrivacy, VideoState } from '../../../../../shared' 2import { PlaylistElement, Video as VideoServerModel, VideoPrivacy, VideoState } from '../../../../../shared'
3import { Avatar } from '../../../../../shared/models/avatars/avatar.model' 3import { Avatar } from '../../../../../shared/models/avatars/avatar.model'
4import { VideoConstant } from '../../../../../shared/models/videos/video-constant.model' 4import { VideoConstant } from '../../../../../shared/models/videos/video-constant.model'
5import { durationToString, getAbsoluteAPIUrl } from '../misc/utils' 5import { durationToString, getAbsoluteAPIUrl } from '../misc/utils'
@@ -47,6 +47,8 @@ export class Video implements VideoServerModel {
47 blacklisted?: boolean 47 blacklisted?: boolean
48 blacklistedReason?: string 48 blacklistedReason?: string
49 49
50 playlistElement?: PlaylistElement
51
50 account: { 52 account: {
51 id: number 53 id: number
52 uuid: string 54 uuid: string
@@ -125,6 +127,8 @@ export class Video implements VideoServerModel {
125 this.blacklistedReason = hash.blacklistedReason 127 this.blacklistedReason = hash.blacklistedReason
126 128
127 this.userHistory = hash.userHistory 129 this.userHistory = hash.userHistory
130
131 this.playlistElement = hash.playlistElement
128 } 132 }
129 133
130 isVideoNSFWForUser (user: User, serverConfig: ServerConfig) { 134 isVideoNSFWForUser (user: User, serverConfig: ServerConfig) {