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