aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-19 15:47:56 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-19 15:47:56 +0200
commitf1013131ceeee1a56f3d0c0855950c05fa0e562b (patch)
tree4ff107e236b3bb1502c583c1af988f9168ff2979 /client
parentefee3505f6582ba76f8ad22ad4796e214f078bcc (diff)
downloadPeerTube-f1013131ceeee1a56f3d0c0855950c05fa0e562b.tar.gz
PeerTube-f1013131ceeee1a56f3d0c0855950c05fa0e562b.tar.zst
PeerTube-f1013131ceeee1a56f3d0c0855950c05fa0e562b.zip
Fix video not found in watch component
Diffstat (limited to 'client')
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.ts6
1 files changed, 5 insertions, 1 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 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 {
37 userRating: UserVideoRateType = null 37 userRating: UserVideoRateType = null
38 video: Video = null 38 video: Video = null
39 videoPlayerLoaded = false 39 videoPlayerLoaded = false
40 videoNotFound = false
40 41
41 private paramsSub: Subscription 42 private paramsSub: Subscription
42 43
@@ -58,7 +59,10 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
58 this.videoService.getVideo(uuid).subscribe( 59 this.videoService.getVideo(uuid).subscribe(
59 video => this.onVideoFetched(video), 60 video => this.onVideoFetched(video),
60 61
61 error => console.error(error) 62 error => {
63 this.videoNotFound = true
64 console.error(error)
65 }
62 ) 66 )
63 }) 67 })
64 } 68 }