aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-watch/video-watch.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+videos/+video-watch/video-watch.component.ts')
-rw-r--r--client/src/app/+videos/+video-watch/video-watch.component.ts7
1 files changed, 7 insertions, 0 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 5fa31ec63..d05f08a5f 100644
--- a/client/src/app/+videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/+videos/+video-watch/video-watch.component.ts
@@ -72,6 +72,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
72 playlist: VideoPlaylist = null 72 playlist: VideoPlaylist = null
73 73
74 remoteServerDown = false 74 remoteServerDown = false
75 noPlaylistVideoFound = false
75 76
76 private nextVideoUUID = '' 77 private nextVideoUUID = ''
77 private nextVideoTitle = '' 78 private nextVideoTitle = ''
@@ -178,6 +179,10 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
178 this.loadVideo(videoId) 179 this.loadVideo(videoId)
179 } 180 }
180 181
182 onPlaylistNoVideoFound () {
183 this.noPlaylistVideoFound = true
184 }
185
181 isUserLoggedIn () { 186 isUserLoggedIn () {
182 return this.authService.isLoggedIn() 187 return this.authService.isLoggedIn()
183 } 188 }
@@ -286,6 +291,8 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
286 private loadPlaylist (playlistId: string) { 291 private loadPlaylist (playlistId: string) {
287 if (this.isSameElement(this.playlist, playlistId)) return 292 if (this.isSameElement(this.playlist, playlistId)) return
288 293
294 this.noPlaylistVideoFound = false
295
289 this.playlistService.getVideoPlaylist(playlistId) 296 this.playlistService.getVideoPlaylist(playlistId)
290 .subscribe({ 297 .subscribe({
291 next: playlist => { 298 next: playlist => {