aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-03-17 15:05:28 +0100
committerRigel Kent <sendmemail@rigelk.eu>2020-03-17 15:05:30 +0100
commit6dd873d6a9a75a99df6ee47b5a196653587a2f63 (patch)
tree4ebc18588de6c310469f5b4052b7987bea2e81e0
parent79671021e2a6164effb0ec4e38ee89ea3c260069 (diff)
downloadPeerTube-6dd873d6a9a75a99df6ee47b5a196653587a2f63.tar.gz
PeerTube-6dd873d6a9a75a99df6ee47b5a196653587a2f63.tar.zst
PeerTube-6dd873d6a9a75a99df6ee47b5a196653587a2f63.zip
Fix next video button to support playlist videos
fixes #2523
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts
index 9ba14316c..51e484275 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -541,7 +541,9 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
541 } 541 }
542 542
543 private autoplayNext () { 543 private autoplayNext () {
544 if (this.nextVideoUuid) { 544 if (this.playlist) {
545 this.zone.run(() => this.videoWatchPlaylist.navigateToNextPlaylistVideo())
546 } else if (this.nextVideoUuid) {
545 this.router.navigate([ '/videos/watch', this.nextVideoUuid ]) 547 this.router.navigate([ '/videos/watch', this.nextVideoUuid ])
546 } 548 }
547 } 549 }