Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Only show download button if downloadingEnabled is set to true

Lucas Declercqe0d827e29afc
diff --git a/client/src/app/videos/+video-edit/shared/video-edit.component.html b/client/src/app/videos/+video-edit/shared/video-edit.component.html
index 33c766d87c..46eb019b12 100644
--- a/client/src/app/videos/+video-edit/shared/video-edit.component.html
+++ b/client/src/app/videos/+video-edit/shared/video-edit.component.html
@@ -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"
diff --git a/client/src/app/videos/+video-edit/shared/video-edit.component.ts b/client/src/app/videos/+video-edit/shared/video-edit.component.ts
index eb9396d70b..b09664376f 100644
--- a/client/src/app/videos/+video-edit/shared/video-edit.component.ts
+++ b/client/src/app/videos/+video-edit/shared/video-edit.component.ts
@@ -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,