diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-11 14:16:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-10-11 14:17:27 +0200 |
commit | 080f14025ea5113d27b9732e06a1db7eb5489dea (patch) | |
tree | 7d8ebfa9c3311050fa020df173d5217181301a5e /client/src/app/+videos/+video-edit/shared | |
parent | e5fc6b598325c861a7696e320b8de0eecb856cc7 (diff) | |
download | PeerTube-080f14025ea5113d27b9732e06a1db7eb5489dea.tar.gz PeerTube-080f14025ea5113d27b9732e06a1db7eb5489dea.tar.zst PeerTube-080f14025ea5113d27b9732e06a1db7eb5489dea.zip |
Hide wait transcoding for lives
Replays are always transcoded
Diffstat (limited to 'client/src/app/+videos/+video-edit/shared')
-rw-r--r-- | client/src/app/+videos/+video-edit/shared/video-edit.component.html | 2 | ||||
-rw-r--r-- | client/src/app/+videos/+video-edit/shared/video-edit.component.ts | 11 |
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 { | |||
22 | import { FormReactiveValidationMessages, FormValidatorService } from '@app/shared/shared-forms' | 22 | import { FormReactiveValidationMessages, FormValidatorService } from '@app/shared/shared-forms' |
23 | import { InstanceService } from '@app/shared/shared-instance' | 23 | import { InstanceService } from '@app/shared/shared-instance' |
24 | import { VideoCaptionEdit, VideoCaptionWithPathEdit, VideoEdit, VideoService } from '@app/shared/shared-main' | 24 | import { VideoCaptionEdit, VideoCaptionWithPathEdit, VideoEdit, VideoService } from '@app/shared/shared-main' |
25 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' | ||
26 | import { logger } from '@root-helpers/logger' | ||
25 | import { PluginInfo } from '@root-helpers/plugins-manager' | 27 | import { PluginInfo } from '@root-helpers/plugins-manager' |
26 | import { | 28 | import { |
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' |
38 | import { VideoSource } from '@shared/models/videos/video-source' | ||
36 | import { I18nPrimengCalendarService } from './i18n-primeng-calendar.service' | 39 | import { I18nPrimengCalendarService } from './i18n-primeng-calendar.service' |
37 | import { VideoCaptionAddModalComponent } from './video-caption-add-modal.component' | 40 | import { VideoCaptionAddModalComponent } from './video-caption-add-modal.component' |
38 | import { VideoCaptionEditModalContentComponent } from './video-caption-edit-modal-content/video-caption-edit-modal-content.component' | 41 | import { VideoCaptionEditModalContentComponent } from './video-caption-edit-modal-content/video-caption-edit-modal-content.component' |
39 | import { VideoEditType } from './video-edit.type' | 42 | import { VideoEditType } from './video-edit.type' |
40 | import { VideoSource } from '@shared/models/videos/video-source' | ||
41 | import { logger } from '@root-helpers/logger' | ||
42 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' | ||
43 | 43 | ||
44 | type VideoLanguages = VideoConstant<string> & { group?: string } | 44 | type VideoLanguages = VideoConstant<string> & { group?: string } |
45 | type PluginField = { | 45 | type 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 | } |