Fix show more description button on video change

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