aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-edit/video-update.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-06-07 15:37:36 +0200
committerChocobozzz <me@florianbigard.com>2019-06-07 15:37:36 +0200
commit12bec528aafd895075e19486b87b64f0f58581ac (patch)
tree65df371a3746c371fbacc9c959ad0c60831f69b1 /client/src/app/videos/+video-edit/video-update.component.ts
parentb91bc1d1f3591c35ab4426f6ab594b4bd9f1ef62 (diff)
downloadPeerTube-12bec528aafd895075e19486b87b64f0f58581ac.tar.gz
PeerTube-12bec528aafd895075e19486b87b64f0f58581ac.tar.zst
PeerTube-12bec528aafd895075e19486b87b64f0f58581ac.zip
Don't break video scheduled publication
Diffstat (limited to 'client/src/app/videos/+video-edit/video-update.component.ts')
-rw-r--r--client/src/app/videos/+video-edit/video-update.component.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/app/videos/+video-edit/video-update.component.ts b/client/src/app/videos/+video-edit/video-update.component.ts
index e990ceb13..81c66ff20 100644
--- a/client/src/app/videos/+video-edit/video-update.component.ts
+++ b/client/src/app/videos/+video-edit/video-update.component.ts
@@ -12,6 +12,7 @@ import { FormValidatorService } from '@app/shared/forms/form-validators/form-val
12import { VideoCaptionService } from '@app/shared/video-caption' 12import { VideoCaptionService } from '@app/shared/video-caption'
13import { VideoCaptionEdit } from '@app/shared/video-caption/video-caption-edit.model' 13import { VideoCaptionEdit } from '@app/shared/video-caption/video-caption-edit.model'
14import { VideoDetails } from '@app/shared/video/video-details.model' 14import { VideoDetails } from '@app/shared/video/video-details.model'
15import { VideoPrivacy } from '@shared/models'
15 16
16@Component({ 17@Component({
17 selector: 'my-videos-update', 18 selector: 'my-videos-update',
@@ -53,6 +54,8 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
53 this.userVideoChannels = videoChannels 54 this.userVideoChannels = videoChannels
54 this.videoCaptions = videoCaptions 55 this.videoCaptions = videoCaptions
55 56
57 this.schedulePublicationPossible = this.video.privacy === VideoPrivacy.PRIVATE
58
56 const videoFiles = (video as VideoDetails).files 59 const videoFiles = (video as VideoDetails).files
57 if (videoFiles.length > 1) { // Already transcoded 60 if (videoFiles.length > 1) { // Already transcoded
58 this.waitTranscodingEnabled = false 61 this.waitTranscodingEnabled = false