ngOnChanges () {
if (this.loaded) {
this.loaded = false
- this.playlistAdd.reload()
+ if (this.playlistAdd) this.playlistAdd.reload()
}
this.buildActions()
}
canVideoBeDuplicated () {
- return this.video.canBeDuplicatedBy(this.user)
+ return !this.video.isLive && this.video.canBeDuplicatedBy(this.user)
}
isVideoAccountMutable () {
{
label: $localize`Display live information`,
handler: ({ video }) => this.showLiveInfoModal(video),
- isDisplayed: () => this.isVideoLiveInfoAvailable(),
+ isDisplayed: () => this.displayOptions.liveInfo && this.isVideoLiveInfoAvailable(),
iconName: 'live'
},
{