From 080f14025ea5113d27b9732e06a1db7eb5489dea Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 11 Oct 2022 14:16:15 +0200 Subject: Hide wait transcoding for lives Replays are always transcoded --- client/src/app/+videos/+video-edit/video-update.component.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'client/src/app/+videos/+video-edit/video-update.component.ts') 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 212971447..02398a036 100644 --- a/client/src/app/+videos/+video-edit/video-update.component.ts +++ b/client/src/app/+videos/+video-edit/video-update.component.ts @@ -28,7 +28,6 @@ export class VideoUpdateComponent extends FormReactive implements OnInit { isUpdatingVideo = false forbidScheduledPublication = false - waitTranscodingEnabled = true private updateDone = false @@ -96,16 +95,12 @@ export class VideoUpdateComponent extends FormReactive implements OnInit { return { canDeactivate: this.formChanged === false, text } } - isWaitTranscodingEnabled () { + isWaitTranscodingHidden () { if (this.videoDetails.getFiles().length > 1) { // Already transcoded - return false + return true } - if (this.liveVideo && this.form.value['saveReplay'] !== true) { - return false - } - - return true + return false } async update () { -- cgit v1.2.3