X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bvideos%2F%2Bvideo-edit%2Fshared%2Fvideo-edit.component.ts;h=80b5dce462ac78a4d2e9a0e5a33c04f6bcb32adb;hb=ddb62a85c5517d3437feb7d487a8a11881b68fcb;hp=5294a57a1fa560e4d9e216a28c70659307e3d1b1;hpb=e08ff02a9f1fb1cfbdfa8f0f602eda9419ba6cc3;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.ts b/client/src/app/+videos/+video-edit/shared/video-edit.component.ts index 5294a57a1..80b5dce46 100644 --- a/client/src/app/+videos/+video-edit/shared/video-edit.component.ts +++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.ts @@ -96,22 +96,6 @@ export class VideoEditComponent implements OnInit, OnDestroy { this.calendarDateFormat = this.i18nPrimengCalendarService.getDateFormat() } - get existingCaptions () { - return this.videoCaptions - .filter(c => c.action !== 'REMOVE') - .map(c => c.language.id) - } - - isWaitTranscodingDisplayed () { - if (!this.waitTranscodingEnabled) return false - - if (this.liveVideo) { - return this.form.value['saveReplay'] === true - } - - return true - } - updateForm () { const defaultValues: any = { nsfw: 'false', @@ -217,6 +201,12 @@ export class VideoEditComponent implements OnInit, OnDestroy { if (this.schedulerInterval) clearInterval(this.schedulerInterval) } + getExistingCaptions () { + return this.videoCaptions + .filter(c => c.action !== 'REMOVE') + .map(c => c.language.id) + } + onCaptionAdded (caption: VideoCaptionEdit) { const existingCaption = this.videoCaptions.find(c => c.language.id === caption.language.id)