diff options
Diffstat (limited to 'client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.ts')
-rw-r--r-- | client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.ts b/client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.ts index fbf9a3687..b44238310 100644 --- a/client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.ts +++ b/client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.ts | |||
@@ -143,6 +143,14 @@ export class VideoWatchPlaylistComponent { | |||
143 | this.onPlaylistVideosNearOfBottom(position) | 143 | this.onPlaylistVideosNearOfBottom(position) |
144 | } | 144 | } |
145 | 145 | ||
146 | hasPreviousVideo () { | ||
147 | return !!this.findPlaylistVideo(this.currentPlaylistPosition - 1, 'previous') | ||
148 | } | ||
149 | |||
150 | hasNextVideo () { | ||
151 | return !!this.findPlaylistVideo(this.currentPlaylistPosition + 1, 'next') | ||
152 | } | ||
153 | |||
146 | navigateToPreviousPlaylistVideo () { | 154 | navigateToPreviousPlaylistVideo () { |
147 | const previous = this.findPlaylistVideo(this.currentPlaylistPosition - 1, 'previous') | 155 | const previous = this.findPlaylistVideo(this.currentPlaylistPosition - 1, 'previous') |
148 | if (!previous) return | 156 | if (!previous) return |