More robust wait transcoding checkbox display

This commit is contained in:
Chocobozzz 2023-06-19 16:12:45 +02:00
parent 17ad0e8428
commit 180d8f297e
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 6 deletions

View File

@ -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 () {