mirror of https://github.com/Chocobozzz/PeerTube
Only show download button if downloadingEnabled is set to true
parent
156c50af30
commit
e0d827e29a
|
@ -125,6 +125,11 @@
|
|||
i18n-labelText labelText="Enable video comments"
|
||||
></my-peertube-checkbox>
|
||||
|
||||
<my-peertube-checkbox
|
||||
inputName="downloadingEnabled" formControlName="downloadingEnabled"
|
||||
i18n-labelText labelText="Disable downloading"
|
||||
></my-peertube-checkbox>
|
||||
|
||||
<my-peertube-checkbox
|
||||
inputName="waitTranscoding" formControlName="waitTranscoding"
|
||||
i18n-labelText labelText="Wait transcoding before publishing the video"
|
||||
|
|
|
@ -80,6 +80,7 @@ export class VideoEditComponent implements OnInit, OnDestroy {
|
|||
const defaultValues = {
|
||||
nsfw: 'false',
|
||||
commentsEnabled: 'true',
|
||||
downloadingEnabled: 'true',
|
||||
waitTranscoding: 'true',
|
||||
tags: []
|
||||
}
|
||||
|
@ -89,6 +90,7 @@ export class VideoEditComponent implements OnInit, OnDestroy {
|
|||
channelId: this.videoValidatorsService.VIDEO_CHANNEL,
|
||||
nsfw: null,
|
||||
commentsEnabled: null,
|
||||
downloadingEnabled: null,
|
||||
waitTranscoding: null,
|
||||
category: this.videoValidatorsService.VIDEO_CATEGORY,
|
||||
licence: this.videoValidatorsService.VIDEO_LICENCE,
|
||||
|
|
Loading…
Reference in New Issue