aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-06-19 16:12:45 +0200
committerChocobozzz <me@florianbigard.com>2023-06-29 10:19:55 +0200
commit180d8f297ecc40e4b70b963c32362eed3ddd9fec (patch)
tree0f47641f791af186170c7674f1d59db6350aec84
parent17ad0e8428c2b187f86e3a507a96706e77d44fa1 (diff)
downloadPeerTube-180d8f297ecc40e4b70b963c32362eed3ddd9fec.tar.gz
PeerTube-180d8f297ecc40e4b70b963c32362eed3ddd9fec.tar.zst
PeerTube-180d8f297ecc40e4b70b963c32362eed3ddd9fec.zip
More robust wait transcoding checkbox display
-rw-r--r--client/src/app/+videos/+video-edit/video-update.component.ts8
1 files 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'
10import { LoadingBarService } from '@ngx-loading-bar/core' 10import { LoadingBarService } from '@ngx-loading-bar/core'
11import { logger } from '@root-helpers/logger' 11import { logger } from '@root-helpers/logger'
12import { pick, simpleObjectsDeepEqual } from '@shared/core-utils' 12import { pick, simpleObjectsDeepEqual } from '@shared/core-utils'
13import { LiveVideo, LiveVideoUpdate, VideoPrivacy } from '@shared/models' 13import { LiveVideo, LiveVideoUpdate, VideoPrivacy, VideoState } from '@shared/models'
14import { VideoSource } from '@shared/models/videos/video-source' 14import { VideoSource } from '@shared/models/videos/video-source'
15import { hydrateFormFromVideo } from './shared/video-edit-utils' 15import { hydrateFormFromVideo } from './shared/video-edit-utils'
16 16
@@ -98,11 +98,7 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
98 } 98 }
99 99
100 isWaitTranscodingHidden () { 100 isWaitTranscodingHidden () {
101 if (this.videoDetails.getFiles().length > 1) { // Already transcoded 101 return this.videoDetails.state.id !== VideoState.TO_TRANSCODE
102 return true
103 }
104
105 return false
106 } 102 }
107 103
108 async update () { 104 async update () {