aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos
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
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')
-rw-r--r--client/src/app/videos/+video-edit/video-add-components/video-import-url.component.ts2
-rw-r--r--client/src/app/videos/+video-edit/video-update.component.ts3
2 files changed, 3 insertions, 2 deletions
diff --git a/client/src/app/videos/+video-edit/video-add-components/video-import-url.component.ts b/client/src/app/videos/+video-edit/video-add-components/video-import-url.component.ts
index 2dffdbf0e..a5578bebd 100644
--- a/client/src/app/videos/+video-edit/video-add-components/video-import-url.component.ts
+++ b/client/src/app/videos/+video-edit/video-add-components/video-import-url.component.ts
@@ -91,8 +91,6 @@ export class VideoImportUrlComponent extends VideoSend implements OnInit, CanCom
91 previewUrl: null 91 previewUrl: null
92 })) 92 }))
93 93
94 this.explainedVideoPrivacies = this.videoService.explainedPrivacyLabels(this.videoPrivacies)
95
96 this.hydrateFormFromVideo() 94 this.hydrateFormFromVideo()
97 }, 95 },
98 96
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