From f1013131ceeee1a56f3d0c0855950c05fa0e562b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 19 Oct 2017 15:47:56 +0200 Subject: Fix video not found in watch component --- client/src/app/videos/+video-watch/video-watch.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'client/src/app/videos/+video-watch/video-watch.component.ts') 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 8b5abc3f3..f45ffd82f 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts @@ -37,6 +37,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { userRating: UserVideoRateType = null video: Video = null videoPlayerLoaded = false + videoNotFound = false private paramsSub: Subscription @@ -58,7 +59,10 @@ export class VideoWatchComponent implements OnInit, OnDestroy { this.videoService.getVideo(uuid).subscribe( video => this.onVideoFetched(video), - error => console.error(error) + error => { + this.videoNotFound = true + console.error(error) + } ) }) } -- cgit v1.2.3