From 0151c41c65e0e3e94288314afe295358b9d698f7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 26 Nov 2020 09:30:26 +0100 Subject: Do not display wait transcoding checkbox If this is a live and save replay is not enabled --- .../app/+videos/+video-edit/shared/video-edit.component.html | 2 +- .../src/app/+videos/+video-edit/shared/video-edit.component.ts | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'client/src/app/+videos') 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', -- cgit v1.2.3