aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-edit/shared
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+videos/+video-edit/shared')
-rw-r--r--client/src/app/+videos/+video-edit/shared/video-edit.component.html2
-rw-r--r--client/src/app/+videos/+video-edit/shared/video-edit.component.ts11
2 files changed, 7 insertions, 6 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 7be5a3736..fa816fd9e 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
@@ -141,7 +141,7 @@
141 </ng-template> 141 </ng-template>
142 </my-peertube-checkbox> 142 </my-peertube-checkbox>
143 143
144 <my-peertube-checkbox *ngIf="waitTranscodingEnabled" inputName="waitTranscoding" formControlName="waitTranscoding" helpPlacement="bottom-right"> 144 <my-peertube-checkbox *ngIf="!hideWaitTranscoding" inputName="waitTranscoding" formControlName="waitTranscoding" helpPlacement="bottom-right">
145 <ng-template ptTemplate="label"> 145 <ng-template ptTemplate="label">
146 <ng-container i18n>Publish after transcoding</ng-container> 146 <ng-container i18n>Publish after transcoding</ng-container>
147 </ng-template> 147 </ng-template>
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 0275f66f5..13359a4d1 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
@@ -22,6 +22,8 @@ import {
22import { FormReactiveValidationMessages, FormValidatorService } from '@app/shared/shared-forms' 22import { FormReactiveValidationMessages, FormValidatorService } from '@app/shared/shared-forms'
23import { InstanceService } from '@app/shared/shared-instance' 23import { InstanceService } from '@app/shared/shared-instance'
24import { VideoCaptionEdit, VideoCaptionWithPathEdit, VideoEdit, VideoService } from '@app/shared/shared-main' 24import { VideoCaptionEdit, VideoCaptionWithPathEdit, VideoEdit, VideoService } from '@app/shared/shared-main'
25import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
26import { logger } from '@root-helpers/logger'
25import { PluginInfo } from '@root-helpers/plugins-manager' 27import { PluginInfo } from '@root-helpers/plugins-manager'
26import { 28import {
27 HTMLServerConfig, 29 HTMLServerConfig,
@@ -33,13 +35,11 @@ import {
33 VideoDetails, 35 VideoDetails,
34 VideoPrivacy 36 VideoPrivacy
35} from '@shared/models' 37} from '@shared/models'
38import { VideoSource } from '@shared/models/videos/video-source'
36import { I18nPrimengCalendarService } from './i18n-primeng-calendar.service' 39import { I18nPrimengCalendarService } from './i18n-primeng-calendar.service'
37import { VideoCaptionAddModalComponent } from './video-caption-add-modal.component' 40import { VideoCaptionAddModalComponent } from './video-caption-add-modal.component'
38import { VideoCaptionEditModalContentComponent } from './video-caption-edit-modal-content/video-caption-edit-modal-content.component' 41import { VideoCaptionEditModalContentComponent } from './video-caption-edit-modal-content/video-caption-edit-modal-content.component'
39import { VideoEditType } from './video-edit.type' 42import { VideoEditType } from './video-edit.type'
40import { VideoSource } from '@shared/models/videos/video-source'
41import { logger } from '@root-helpers/logger'
42import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
43 43
44type VideoLanguages = VideoConstant<string> & { group?: string } 44type VideoLanguages = VideoConstant<string> & { group?: string }
45type PluginField = { 45type PluginField = {
@@ -66,7 +66,8 @@ export class VideoEditComponent implements OnInit, OnDestroy {
66 @Input() videoCaptions: VideoCaptionWithPathEdit[] = [] 66 @Input() videoCaptions: VideoCaptionWithPathEdit[] = []
67 @Input() videoSource: VideoSource 67 @Input() videoSource: VideoSource
68 68
69 @Input() waitTranscodingEnabled = true 69 @Input() hideWaitTranscoding = false
70
70 @Input() type: VideoEditType 71 @Input() type: VideoEditType
71 @Input() liveVideo: LiveVideo 72 @Input() liveVideo: LiveVideo
72 73
@@ -140,7 +141,7 @@ export class VideoEditComponent implements OnInit, OnDestroy {
140 nsfw: 'false', 141 nsfw: 'false',
141 commentsEnabled: this.serverConfig.defaults.publish.commentsEnabled, 142 commentsEnabled: this.serverConfig.defaults.publish.commentsEnabled,
142 downloadEnabled: this.serverConfig.defaults.publish.downloadEnabled, 143 downloadEnabled: this.serverConfig.defaults.publish.downloadEnabled,
143 waitTranscoding: 'true', 144 waitTranscoding: true,
144 licence: this.serverConfig.defaults.publish.licence, 145 licence: this.serverConfig.defaults.publish.licence,
145 tags: [] 146 tags: []
146 } 147 }