diff options
author | Chocobozzz <me@florianbigard.com> | 2023-06-19 16:12:45 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-06-29 10:19:55 +0200 |
commit | 180d8f297ecc40e4b70b963c32362eed3ddd9fec (patch) | |
tree | 0f47641f791af186170c7674f1d59db6350aec84 /client/src | |
parent | 17ad0e8428c2b187f86e3a507a96706e77d44fa1 (diff) | |
download | PeerTube-180d8f297ecc40e4b70b963c32362eed3ddd9fec.tar.gz PeerTube-180d8f297ecc40e4b70b963c32362eed3ddd9fec.tar.zst PeerTube-180d8f297ecc40e4b70b963c32362eed3ddd9fec.zip |
More robust wait transcoding checkbox display
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/+videos/+video-edit/video-update.component.ts | 8 |
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' | |||
10 | import { LoadingBarService } from '@ngx-loading-bar/core' | 10 | import { LoadingBarService } from '@ngx-loading-bar/core' |
11 | import { logger } from '@root-helpers/logger' | 11 | import { logger } from '@root-helpers/logger' |
12 | import { pick, simpleObjectsDeepEqual } from '@shared/core-utils' | 12 | import { pick, simpleObjectsDeepEqual } from '@shared/core-utils' |
13 | import { LiveVideo, LiveVideoUpdate, VideoPrivacy } from '@shared/models' | 13 | import { LiveVideo, LiveVideoUpdate, VideoPrivacy, VideoState } from '@shared/models' |
14 | import { VideoSource } from '@shared/models/videos/video-source' | 14 | import { VideoSource } from '@shared/models/videos/video-source' |
15 | import { hydrateFormFromVideo } from './shared/video-edit-utils' | 15 | import { 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 () { |