diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-03-22 21:15:55 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-03-22 21:25:24 +0100 |
commit | 6e07c3de88791a0b342e0cc319590048117f9c2d (patch) | |
tree | 049f88d3f6d3ec0aeea09702a583deb86d6ef78f /client/src/app/videos/shared/video.model.ts | |
parent | 2d7653dc8726185615bab66353c4e3fb8fbb5a5f (diff) | |
download | PeerTube-6e07c3de88791a0b342e0cc319590048117f9c2d.tar.gz PeerTube-6e07c3de88791a0b342e0cc319590048117f9c2d.tar.zst PeerTube-6e07c3de88791a0b342e0cc319590048117f9c2d.zip |
Add video category support
Diffstat (limited to 'client/src/app/videos/shared/video.model.ts')
-rw-r--r-- | client/src/app/videos/shared/video.model.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/app/videos/shared/video.model.ts b/client/src/app/videos/shared/video.model.ts index 3eef936eb..b5d96f63a 100644 --- a/client/src/app/videos/shared/video.model.ts +++ b/client/src/app/videos/shared/video.model.ts | |||
@@ -2,6 +2,7 @@ export class Video { | |||
2 | author: string; | 2 | author: string; |
3 | by: string; | 3 | by: string; |
4 | createdAt: Date; | 4 | createdAt: Date; |
5 | categoryLabel: string; | ||
5 | description: string; | 6 | description: string; |
6 | duration: string; | 7 | duration: string; |
7 | id: string; | 8 | id: string; |
@@ -31,6 +32,7 @@ export class Video { | |||
31 | constructor(hash: { | 32 | constructor(hash: { |
32 | author: string, | 33 | author: string, |
33 | createdAt: string, | 34 | createdAt: string, |
35 | categoryLabel: string, | ||
34 | description: string, | 36 | description: string, |
35 | duration: number; | 37 | duration: number; |
36 | id: string, | 38 | id: string, |
@@ -46,6 +48,7 @@ export class Video { | |||
46 | }) { | 48 | }) { |
47 | this.author = hash.author; | 49 | this.author = hash.author; |
48 | this.createdAt = new Date(hash.createdAt); | 50 | this.createdAt = new Date(hash.createdAt); |
51 | this.categoryLabel = hash.categoryLabel; | ||
49 | this.description = hash.description; | 52 | this.description = hash.description; |
50 | this.duration = Video.createDurationString(hash.duration); | 53 | this.duration = Video.createDurationString(hash.duration); |
51 | this.id = hash.id; | 54 | this.id = hash.id; |