]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Only show download button if downloadingEnabled is set to true
authorLucas Declercq <lucas.declercq@ineat-conseil.fr>
Sat, 6 Oct 2018 17:18:00 +0000 (19:18 +0200)
committerLucas Declercq <lucas.declercq@ineat-conseil.fr>
Sat, 6 Oct 2018 17:18:00 +0000 (19:18 +0200)
client/src/app/videos/+video-edit/shared/video-edit.component.html
client/src/app/videos/+video-edit/shared/video-edit.component.ts

index 33c766d87ca09852e69d138244dab4fe4cf74085..46eb019b12a4e88295cd3e97cc978ce2d704f894 100644 (file)
               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"
index eb9396d70b0b2f10a6d96093a971f89a046c5cb3..b09664376f1afba9bd94e19b0a07ade16e4bcbcd 100644 (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,