aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/shared
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-06-10 17:43:40 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-06-10 17:46:29 +0200
commit00a446454d4721fc49517815655f6b4f8a17b554 (patch)
tree26f41fc11c059d5b051a98099857db971623b5d9 /client/src/app/videos/shared
parente822fdaeee90cb7c70d5678f19249198cd7aae8c (diff)
downloadPeerTube-00a446454d4721fc49517815655f6b4f8a17b554.tar.gz
PeerTube-00a446454d4721fc49517815655f6b4f8a17b554.tar.zst
PeerTube-00a446454d4721fc49517815655f6b4f8a17b554.zip
Add tags support to the video list
Diffstat (limited to 'client/src/app/videos/shared')
-rw-r--r--client/src/app/videos/shared/video.model.ts3
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 614403d79..65417f751 100644
--- a/client/src/app/videos/shared/video.model.ts
+++ b/client/src/app/videos/shared/video.model.ts
@@ -9,6 +9,7 @@ export class Video {
9 magnetUri: string; 9 magnetUri: string;
10 name: string; 10 name: string;
11 podUrl: string; 11 podUrl: string;
12 tags: string[];
12 thumbnailPath: string; 13 thumbnailPath: string;
13 14
14 private static createByString(author: string, podUrl: string) { 15 private static createByString(author: string, podUrl: string) {
@@ -42,6 +43,7 @@ export class Video {
42 magnetUri: string, 43 magnetUri: string,
43 name: string, 44 name: string,
44 podUrl: string, 45 podUrl: string,
46 tags: string[],
45 thumbnailPath: string 47 thumbnailPath: string
46 }) { 48 }) {
47 this.author = hash.author; 49 this.author = hash.author;
@@ -53,6 +55,7 @@ export class Video {
53 this.magnetUri = hash.magnetUri; 55 this.magnetUri = hash.magnetUri;
54 this.name = hash.name; 56 this.name = hash.name;
55 this.podUrl = hash.podUrl; 57 this.podUrl = hash.podUrl;
58 this.tags = hash.tags;
56 this.thumbnailPath = hash.thumbnailPath; 59 this.thumbnailPath = hash.thumbnailPath;
57 60
58 this.by = Video.createByString(hash.author, hash.podUrl); 61 this.by = Video.createByString(hash.author, hash.podUrl);