Only show download button if downloadingEnabled is set to true

pull/1217/head
Lucas Declercq 2018-10-06 19:18:00 +02:00
parent 156c50af30
commit e0d827e29a
2 changed files with 7 additions and 0 deletions

View File

@ -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"

View File

@ -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,