aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-11-06 09:14:18 +0100
committerChocobozzz <me@florianbigard.com>2019-11-06 09:14:18 +0100
commitf1d9b2d6bf81c51f0921fab0ebc40de7c0837df6 (patch)
treebc0ccf75435146ef85734f8680bbc73e1c154bcd /client/src/app
parent4ba8469c0e48161a433d04bad176b700dee31dda (diff)
downloadPeerTube-f1d9b2d6bf81c51f0921fab0ebc40de7c0837df6.tar.gz
PeerTube-f1d9b2d6bf81c51f0921fab0ebc40de7c0837df6.tar.zst
PeerTube-f1d9b2d6bf81c51f0921fab0ebc40de7c0837df6.zip
Fix start/stop of first element when loading a playlist
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/videos/+video-watch/video-watch-playlist.component.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/videos/+video-watch/video-watch-playlist.component.ts b/client/src/app/videos/+video-watch/video-watch-playlist.component.ts
index 6e8d58cd8..524055ce2 100644
--- a/client/src/app/videos/+video-watch/video-watch-playlist.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch-playlist.component.ts
@@ -80,7 +80,11 @@ export class VideoWatchPlaylistComponent {
80 80
81 if (redirectToFirst) { 81 if (redirectToFirst) {
82 const extras = { 82 const extras = {
83 queryParams: { videoId: firstAvailableVideos.video.uuid }, 83 queryParams: {
84 start: firstAvailableVideos.startTimestamp,
85 stop: firstAvailableVideos.stopTimestamp,
86 videoId: firstAvailableVideos.video.uuid
87 },
84 replaceUrl: true 88 replaceUrl: true
85 } 89 }
86 this.router.navigate([], extras) 90 this.router.navigate([], extras)