aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-edit/video-update.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-10-11 14:16:15 +0200
committerChocobozzz <me@florianbigard.com>2022-10-11 14:17:27 +0200
commit080f14025ea5113d27b9732e06a1db7eb5489dea (patch)
tree7d8ebfa9c3311050fa020df173d5217181301a5e /client/src/app/+videos/+video-edit/video-update.component.ts
parente5fc6b598325c861a7696e320b8de0eecb856cc7 (diff)
downloadPeerTube-080f14025ea5113d27b9732e06a1db7eb5489dea.tar.gz
PeerTube-080f14025ea5113d27b9732e06a1db7eb5489dea.tar.zst
PeerTube-080f14025ea5113d27b9732e06a1db7eb5489dea.zip
Hide wait transcoding for lives
Replays are always transcoded
Diffstat (limited to 'client/src/app/+videos/+video-edit/video-update.component.ts')
-rw-r--r--client/src/app/+videos/+video-edit/video-update.component.ts11
1 files changed, 3 insertions, 8 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 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 {
28 28
29 isUpdatingVideo = false 29 isUpdatingVideo = false
30 forbidScheduledPublication = false 30 forbidScheduledPublication = false
31 waitTranscodingEnabled = true
32 31
33 private updateDone = false 32 private updateDone = false
34 33
@@ -96,16 +95,12 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
96 return { canDeactivate: this.formChanged === false, text } 95 return { canDeactivate: this.formChanged === false, text }
97 } 96 }
98 97
99 isWaitTranscodingEnabled () { 98 isWaitTranscodingHidden () {
100 if (this.videoDetails.getFiles().length > 1) { // Already transcoded 99 if (this.videoDetails.getFiles().length > 1) { // Already transcoded
101 return false 100 return true
102 } 101 }
103 102
104 if (this.liveVideo && this.form.value['saveReplay'] !== true) { 103 return false
105 return false
106 }
107
108 return true
109 } 104 }
110 105
111 async update () { 106 async update () {