From: Rigel Kent Date: Tue, 17 Mar 2020 14:05:28 +0000 (+0100) Subject: Fix next video button to support playlist videos X-Git-Tag: v2.2.0-rc.1~363 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6dd873d6a9a75a99df6ee47b5a196653587a2f63;p=oweals%2Fpeertube.git Fix next video button to support playlist videos fixes #2523 --- 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 { } private autoplayNext () { - if (this.nextVideoUuid) { + if (this.playlist) { + this.zone.run(() => this.videoWatchPlaylist.navigateToNextPlaylistVideo()) + } else if (this.nextVideoUuid) { this.router.navigate([ '/videos/watch', this.nextVideoUuid ]) } }