From: Chocobozzz Date: Thu, 26 Nov 2020 08:30:26 +0000 (+0100) Subject: Do not display wait transcoding checkbox X-Git-Tag: v3.0.0-rc.1~218 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=0151c41c65e0e3e94288314afe295358b9d698f7;hp=ae48a71d57516b7ae2c4f3f63d237a4c972f0ded;p=github%2FChocobozzz%2FPeerTube.git Do not display wait transcoding checkbox If this is a live and save replay is not enabled --- 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 3a24c4136..bf8b0b267 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 @@ -136,7 +136,7 @@ - + Publish after transcoding 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 26d871e59..de78a18cc 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 @@ -102,6 +102,16 @@ export class VideoEditComponent implements OnInit, OnDestroy { .map(c => c.language.id) } + isWaitTranscodingDisplayed () { + if (!this.waitTranscodingEnabled) return false + + if (this.liveVideo) { + return this.form.value['saveReplay'] === true + } + + return true + } + updateForm () { const defaultValues: any = { nsfw: 'false',