Fix show more description button on video change
This commit is contained in:
parent
a9ab599e53
commit
c448d41242
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue