mirror of https://github.com/Chocobozzz/PeerTube
Cannot download a live
parent
015320aab2
commit
5f153b9d85
|
@ -213,6 +213,8 @@ export class VideoActionsDropdownComponent implements OnChanges {
|
||||||
return this.video.canGenerateTranscription(this.user, this.serverService.getHTMLConfig().videoTranscription.enabled)
|
return this.video.canGenerateTranscription(this.user, this.serverService.getHTMLConfig().videoTranscription.enabled)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
isVideoDownloadableByAnonymous () {
|
isVideoDownloadableByAnonymous () {
|
||||||
return (
|
return (
|
||||||
this.video &&
|
this.video &&
|
||||||
|
@ -222,6 +224,16 @@ export class VideoActionsDropdownComponent implements OnChanges {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isVideoDownloadableByUser () {
|
||||||
|
return (
|
||||||
|
this.video &&
|
||||||
|
this.video.isLive !== true &&
|
||||||
|
this.video.isOwnerOrHasSeeAllVideosRight(this.user)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
canVideoBeDuplicated () {
|
canVideoBeDuplicated () {
|
||||||
return !this.video.isLive && this.video.canBeDuplicatedBy(this.user)
|
return !this.video.isLive && this.video.canBeDuplicatedBy(this.user)
|
||||||
}
|
}
|
||||||
|
@ -395,7 +407,7 @@ export class VideoActionsDropdownComponent implements OnChanges {
|
||||||
isDisplayed: () => {
|
isDisplayed: () => {
|
||||||
if (!this.displayOptions.download) return false
|
if (!this.displayOptions.download) return false
|
||||||
|
|
||||||
return this.isVideoDownloadableByAnonymous() || this.video.isOwnerOrHasSeeAllVideosRight(this.user)
|
return this.isVideoDownloadableByAnonymous() || this.isVideoDownloadableByUser()
|
||||||
},
|
},
|
||||||
iconName: 'download',
|
iconName: 'download',
|
||||||
ownerOrModeratorPrivilege: () => {
|
ownerOrModeratorPrivilege: () => {
|
||||||
|
|
Loading…
Reference in New Issue