aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-01-07 14:25:23 +0100
committerChocobozzz <me@florianbigard.com>2022-01-10 10:08:14 +0100
commita5a79d15427372b581e34ac3999c73fc316699d5 (patch)
treead457a2105825462a7dc4e5505bdfdd5aaa82756 /client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.ts
parent22c777863088f90c7f3f9df613b42952abab856d (diff)
downloadPeerTube-a5a79d15427372b581e34ac3999c73fc316699d5.tar.gz
PeerTube-a5a79d15427372b581e34ac3999c73fc316699d5.tar.zst
PeerTube-a5a79d15427372b581e34ac3999c73fc316699d5.zip
Increase player control bar size
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.ts8
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