aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-04-24 11:10:42 +0200
committerChocobozzz <me@florianbigard.com>2019-04-24 16:26:23 +0200
commit5fb6996b811a0cf266750d3c82e876079c8bc19e (patch)
tree1e76a42f6e1d28e3abbe0f576b9339fc6ff908fa /client/src/app
parent210feb6cc484a6c5c63c98f770de34e223f944cb (diff)
downloadPeerTube-5fb6996b811a0cf266750d3c82e876079c8bc19e.tar.gz
PeerTube-5fb6996b811a0cf266750d3c82e876079c8bc19e.tar.zst
PeerTube-5fb6996b811a0cf266750d3c82e876079c8bc19e.zip
Add default playlist image
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/shared/video-playlist/video-playlist.model.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/app/shared/video-playlist/video-playlist.model.ts b/client/src/app/shared/video-playlist/video-playlist.model.ts
index ec8013e89..7e311aa54 100644
--- a/client/src/app/shared/video-playlist/video-playlist.model.ts
+++ b/client/src/app/shared/video-playlist/video-playlist.model.ts
@@ -51,7 +51,12 @@ export class VideoPlaylist implements ServerVideoPlaylist {
51 this.privacy = hash.privacy 51 this.privacy = hash.privacy
52 52
53 this.thumbnailPath = hash.thumbnailPath 53 this.thumbnailPath = hash.thumbnailPath
54 this.thumbnailUrl = absoluteAPIUrl + hash.thumbnailPath 54
55 if (this.thumbnailPath) {
56 this.thumbnailUrl = absoluteAPIUrl + hash.thumbnailPath
57 } else {
58 this.thumbnailUrl = window.location.origin + '/client/assets/images/default-playlist.jpg'
59 }
55 60
56 this.videosLength = hash.videosLength 61 this.videosLength = hash.videosLength
57 62