Fix show more description button on video change
[oweals/peertube.git] / client / src / app / videos / +video-watch / video-watch.component.ts
index ed7892a015687327ef08bb807d7ab567ac60f050..b595ddcb79ebe9ae1331c040cc1e278fe86a8741 100644 (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)) {