From 1840c2f7c91f5f89602a3683d85b0a9df1454855 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 11 Jun 2017 15:19:43 +0200 Subject: Update webpack stack --- client/src/app/videos/shared/video.model.ts | 2 ++ client/src/app/videos/shared/video.service.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'client/src/app/videos/shared') diff --git a/client/src/app/videos/shared/video.model.ts b/client/src/app/videos/shared/video.model.ts index 0cf4039df..e897eb175 100644 --- a/client/src/app/videos/shared/video.model.ts +++ b/client/src/app/videos/shared/video.model.ts @@ -21,6 +21,7 @@ export class Video implements VideoServerModel { podHost: string; tags: string[]; thumbnailPath: string; + thumbnailUrl: string; views: number; likes: number; dislikes: number; @@ -80,6 +81,7 @@ export class Video implements VideoServerModel { this.podHost = hash.podHost; this.tags = hash.tags; this.thumbnailPath = hash.thumbnailPath; + this.thumbnailUrl = API_URL + hash.thumbnailPath; this.views = hash.views; this.likes = hash.likes; this.dislikes = hash.dislikes; diff --git a/client/src/app/videos/shared/video.service.ts b/client/src/app/videos/shared/video.service.ts index ef683dea6..a53ea1064 100644 --- a/client/src/app/videos/shared/video.service.ts +++ b/client/src/app/videos/shared/video.service.ts @@ -20,7 +20,7 @@ import { Video } from './video.model'; @Injectable() export class VideoService { - private static BASE_VIDEO_URL = '/api/v1/videos/'; + private static BASE_VIDEO_URL = API_URL + '/api/v1/videos/'; videoCategories: Array<{ id: number, label: string }> = []; videoLicences: Array<{ id: number, label: string }> = []; -- cgit v1.2.3