From 180d8f297ecc40e4b70b963c32362eed3ddd9fec Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 19 Jun 2023 16:12:45 +0200 Subject: [PATCH] More robust wait transcoding checkbox display --- .../src/app/+videos/+video-edit/video-update.component.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 629d95c08..e51047e8c 100644 --- a/client/src/app/+videos/+video-edit/video-update.component.ts +++ b/client/src/app/+videos/+video-edit/video-update.component.ts @@ -10,7 +10,7 @@ import { LiveVideoService } from '@app/shared/shared-video-live' import { LoadingBarService } from '@ngx-loading-bar/core' import { logger } from '@root-helpers/logger' import { pick, simpleObjectsDeepEqual } from '@shared/core-utils' -import { LiveVideo, LiveVideoUpdate, VideoPrivacy } from '@shared/models' +import { LiveVideo, LiveVideoUpdate, VideoPrivacy, VideoState } from '@shared/models' import { VideoSource } from '@shared/models/videos/video-source' import { hydrateFormFromVideo } from './shared/video-edit-utils' @@ -98,11 +98,7 @@ export class VideoUpdateComponent extends FormReactive implements OnInit { } isWaitTranscodingHidden () { - if (this.videoDetails.getFiles().length > 1) { // Already transcoded - return true - } - - return false + return this.videoDetails.state.id !== VideoState.TO_TRANSCODE } async update () {