From c448d41242c5ae3b78830da4fdf37aa21b55a65f Mon Sep 17 00:00:00 2001
From: Chocobozzz <me@florianbigard.com>
Date: Wed, 4 Apr 2018 09:04:34 +0200
Subject: [PATCH] Fix show more description button on video change

---
 client/src/app/videos/+video-watch/video-watch.component.ts | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts
index ed7892a015..b595ddcb79 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -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)) {
-- 
GitLab