Fix video not found in watch component

pull/108/head
Chocobozzz 2017-10-19 15:47:56 +02:00
parent efee3505f6
commit f1013131ce
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 5 additions and 1 deletions

View File

@ -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)
}
)
})
}