From c57ad141a9ffb67f8e7d087b92eaacd2b653b562 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 11 Jul 2023 09:52:14 +0200 Subject: Rename webtorrent config to web_videos --- .../edit-custom-config/edit-custom-config.component.ts | 2 +- .../edit-custom-config/edit-vod-transcoding.component.html | 4 ++-- .../edit-custom-config/edit-vod-transcoding.component.ts | 14 +++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'client/src/app/+admin/config') diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts index 9219d608b..b381473d6 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts @@ -190,7 +190,7 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { hls: { enabled: null }, - webtorrent: { + webVideos: { enabled: null }, remoteRunners: { diff --git a/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html b/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html index 7218511a9..accf2c28c 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html @@ -67,10 +67,10 @@

Output formats

- +
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.ts index c5f4ecddb..6496e8753 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.ts +++ b/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.ts @@ -90,9 +90,9 @@ export class EditVODTranscodingComponent implements OnInit, OnChanges { const transcodingControl = this.form.get('transcoding.enabled') const videoStudioControl = this.form.get('videoStudio.enabled') const hlsControl = this.form.get('transcoding.hls.enabled') - const webtorrentControl = this.form.get('transcoding.webtorrent.enabled') + const webVideosControl = this.form.get('transcoding.webVideos.enabled') - webtorrentControl.valueChanges + webVideosControl.valueChanges .subscribe(newValue => { if (newValue === false && !hlsControl.disabled) { hlsControl.disable() @@ -105,12 +105,12 @@ export class EditVODTranscodingComponent implements OnInit, OnChanges { hlsControl.valueChanges .subscribe(newValue => { - if (newValue === false && !webtorrentControl.disabled) { - webtorrentControl.disable() + if (newValue === false && !webVideosControl.disabled) { + webVideosControl.disable() } - if (newValue === true && !webtorrentControl.enabled) { - webtorrentControl.enable() + if (newValue === true && !webVideosControl.enabled) { + webVideosControl.enable() } }) @@ -122,7 +122,7 @@ export class EditVODTranscodingComponent implements OnInit, OnChanges { }) transcodingControl.updateValueAndValidity() - webtorrentControl.updateValueAndValidity() + webVideosControl.updateValueAndValidity() videoStudioControl.updateValueAndValidity() hlsControl.updateValueAndValidity() } -- cgit v1.2.3