aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos
diff options
context:
space:
mode:
authorLucas Declercq <lucas.declercq@ineat-conseil.fr>2018-10-06 19:18:00 +0200
committerLucas Declercq <lucas.declercq@ineat-conseil.fr>2018-10-06 19:18:00 +0200
commite0d827e29afc1b29eaf550deb0627c13088c0c65 (patch)
tree1b7093811dbeec9a05f01bb8c7e7298dcb546b73 /client/src/app/videos
parent156c50af3085468a47b8ae73fe8cfcae46b42398 (diff)
downloadPeerTube-e0d827e29afc1b29eaf550deb0627c13088c0c65.tar.gz
PeerTube-e0d827e29afc1b29eaf550deb0627c13088c0c65.tar.zst
PeerTube-e0d827e29afc1b29eaf550deb0627c13088c0c65.zip
Only show download button if downloadingEnabled is set to true
Diffstat (limited to 'client/src/app/videos')
-rw-r--r--client/src/app/videos/+video-edit/shared/video-edit.component.html5
-rw-r--r--client/src/app/videos/+video-edit/shared/video-edit.component.ts2
2 files changed, 7 insertions, 0 deletions
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 33c766d87..46eb019b1 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
@@ -126,6 +126,11 @@
126 ></my-peertube-checkbox> 126 ></my-peertube-checkbox>
127 127
128 <my-peertube-checkbox 128 <my-peertube-checkbox
129 inputName="downloadingEnabled" formControlName="downloadingEnabled"
130 i18n-labelText labelText="Disable downloading"
131 ></my-peertube-checkbox>
132
133 <my-peertube-checkbox
129 inputName="waitTranscoding" formControlName="waitTranscoding" 134 inputName="waitTranscoding" formControlName="waitTranscoding"
130 i18n-labelText labelText="Wait transcoding before publishing the video" 135 i18n-labelText labelText="Wait transcoding before publishing the video"
131 i18n-helpHtml helpHtml="If you decide not to wait for transcoding before publishing the video, it could be unplayable until transcoding ends." 136 i18n-helpHtml helpHtml="If you decide not to wait for transcoding before publishing the video, it could be unplayable until transcoding ends."
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 eb9396d70..b09664376 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 {
80 const defaultValues = { 80 const defaultValues = {
81 nsfw: 'false', 81 nsfw: 'false',
82 commentsEnabled: 'true', 82 commentsEnabled: 'true',
83 downloadingEnabled: 'true',
83 waitTranscoding: 'true', 84 waitTranscoding: 'true',
84 tags: [] 85 tags: []
85 } 86 }
@@ -89,6 +90,7 @@ export class VideoEditComponent implements OnInit, OnDestroy {
89 channelId: this.videoValidatorsService.VIDEO_CHANNEL, 90 channelId: this.videoValidatorsService.VIDEO_CHANNEL,
90 nsfw: null, 91 nsfw: null,
91 commentsEnabled: null, 92 commentsEnabled: null,
93 downloadingEnabled: null,
92 waitTranscoding: null, 94 waitTranscoding: null,
93 category: this.videoValidatorsService.VIDEO_CATEGORY, 95 category: this.videoValidatorsService.VIDEO_CATEGORY,
94 licence: this.videoValidatorsService.VIDEO_LICENCE, 96 licence: this.videoValidatorsService.VIDEO_LICENCE,