aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-edit/video-update.component.ts
diff options
context:
space:
mode:
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.ts15
1 files changed, 5 insertions, 10 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 ed17dff06..02398a036 100644
--- a/client/src/app/+videos/+video-edit/video-update.component.ts
+++ b/client/src/app/+videos/+video-edit/video-update.component.ts
@@ -4,7 +4,7 @@ import { SelectChannelItem } from 'src/types/select-options-item.model'
4import { Component, HostListener, OnInit } from '@angular/core' 4import { Component, HostListener, OnInit } from '@angular/core'
5import { ActivatedRoute, Router } from '@angular/router' 5import { ActivatedRoute, Router } from '@angular/router'
6import { Notifier } from '@app/core' 6import { Notifier } from '@app/core'
7import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' 7import { FormReactive, FormReactiveService } from '@app/shared/shared-forms'
8import { Video, VideoCaptionEdit, VideoCaptionService, VideoDetails, VideoEdit, VideoService } from '@app/shared/shared-main' 8import { Video, VideoCaptionEdit, VideoCaptionService, VideoDetails, VideoEdit, VideoService } from '@app/shared/shared-main'
9import { LiveVideoService } from '@app/shared/shared-video-live' 9import { LiveVideoService } from '@app/shared/shared-video-live'
10import { LoadingBarService } from '@ngx-loading-bar/core' 10import { LoadingBarService } from '@ngx-loading-bar/core'
@@ -28,12 +28,11 @@ 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
35 constructor ( 34 constructor (
36 protected formValidatorService: FormValidatorService, 35 protected formReactiveService: FormReactiveService,
37 private route: ActivatedRoute, 36 private route: ActivatedRoute,
38 private router: Router, 37 private router: Router,
39 private notifier: Notifier, 38 private notifier: Notifier,
@@ -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 () {