Fix video not found in watch component
This commit is contained in:
parent
efee3505f6
commit
f1013131ce
|
@ -37,6 +37,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
|
||||||
userRating: UserVideoRateType = null
|
userRating: UserVideoRateType = null
|
||||||
video: Video = null
|
video: Video = null
|
||||||
videoPlayerLoaded = false
|
videoPlayerLoaded = false
|
||||||
|
videoNotFound = false
|
||||||
|
|
||||||
private paramsSub: Subscription
|
private paramsSub: Subscription
|
||||||
|
|
||||||
|
@ -58,7 +59,10 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
|
||||||
this.videoService.getVideo(uuid).subscribe(
|
this.videoService.getVideo(uuid).subscribe(
|
||||||
video => this.onVideoFetched(video),
|
video => this.onVideoFetched(video),
|
||||||
|
|
||||||
error => console.error(error)
|
error => {
|
||||||
|
this.videoNotFound = true
|
||||||
|
console.error(error)
|
||||||
|
}
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue