Fix show more description button on video change

This commit is contained in:
Chocobozzz 2018-04-04 09:04:34 +02:00
parent a9ab599e53
commit c448d41242
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 1 deletions

View File

@ -38,7 +38,6 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
otherVideosDisplayed: Video[] = [] otherVideosDisplayed: Video[] = []
error = false
player: videojs.Player player: videojs.Player
playerElement: HTMLVideoElement playerElement: HTMLVideoElement
userRating: UserVideoRateType = null userRating: UserVideoRateType = null
@ -319,6 +318,10 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
private async onVideoFetched (video: VideoDetails) { private async onVideoFetched (video: VideoDetails) {
this.video = video this.video = video
// Re init attributes
this.descriptionLoading = false
this.completeDescriptionShown = false
this.updateOtherVideosDisplayed() this.updateOtherVideosDisplayed()
if (this.video.isVideoNSFWForUser(this.user)) { if (this.video.isVideoNSFWForUser(this.user)) {