diff options
author | Chocobozzz <me@florianbigard.com> | 2019-03-11 16:23:33 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-03-18 11:17:59 +0100 |
commit | c5a1ae500e68b759f76851552be6dd10631d34f4 (patch) | |
tree | f741daceab3b506f18f7cc14492a25425ebdf68d /client/src/app/shared/video | |
parent | f0a3988066f72a28bb44520af072f18d91d77dde (diff) | |
download | PeerTube-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.ts | 6 |
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 @@ | |||
1 | import { User } from '../' | 1 | import { User } from '../' |
2 | import { Video as VideoServerModel, VideoPrivacy, VideoState } from '../../../../../shared' | 2 | import { PlaylistElement, Video as VideoServerModel, VideoPrivacy, VideoState } from '../../../../../shared' |
3 | import { Avatar } from '../../../../../shared/models/avatars/avatar.model' | 3 | import { Avatar } from '../../../../../shared/models/avatars/avatar.model' |
4 | import { VideoConstant } from '../../../../../shared/models/videos/video-constant.model' | 4 | import { VideoConstant } from '../../../../../shared/models/videos/video-constant.model' |
5 | import { durationToString, getAbsoluteAPIUrl } from '../misc/utils' | 5 | import { 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) { |