From 86c5229b4d726202378ef46854383bcafca22310 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 2 May 2022 10:49:48 +0200 Subject: Save replay of permanent live in client --- .../+video-edit/shared/video-edit.component.ts | 19 ------------------- .../video-add-components/video-go-live.component.ts | 2 +- 2 files changed, 1 insertion(+), 20 deletions(-) (limited to 'client/src/app/+videos') 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 a2399eafb..16b964482 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 @@ -180,7 +180,6 @@ export class VideoEditComponent implements OnInit, OnDestroy { this.trackChannelChange() this.trackPrivacyChange() - this.trackLivePermanentFieldChange() this.formBuilt.emit() } @@ -457,24 +456,6 @@ export class VideoEditComponent implements OnInit, OnDestroy { ) } - private trackLivePermanentFieldChange () { - // We will update the "support" field depending on the channel - this.form.controls['permanentLive'] - .valueChanges - .subscribe( - permanentLive => { - const saveReplayControl = this.form.controls['saveReplay'] - - if (permanentLive === true) { - saveReplayControl.setValue(false) - saveReplayControl.disable() - } else { - saveReplayControl.enable() - } - } - ) - } - private updateSupportField (support: string) { return this.form.patchValue({ support: support || '' }) } diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts index fde8c884b..725120d16 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts +++ b/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts @@ -71,7 +71,7 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, AfterView nsfw: this.serverConfig.instance.isNSFW, waitTranscoding: true, permanentLive: this.firstStepPermanentLive, - saveReplay: this.firstStepPermanentLive === false && this.isReplayAllowed(), + saveReplay: this.isReplayAllowed(), channelId: this.firstStepChannelId } -- cgit v1.2.3