aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-07-11 09:52:14 +0200
committerChocobozzz <me@florianbigard.com>2023-07-11 09:52:14 +0200
commitc57ad141a9ffb67f8e7d087b92eaacd2b653b562 (patch)
treebddd5d4457cb9c922275cc1d8bb71cd88b1d0293 /client/src
parent784e2ad5c34bcfef36a3f69e9e9acd7cbb3d6428 (diff)
downloadPeerTube-c57ad141a9ffb67f8e7d087b92eaacd2b653b562.tar.gz
PeerTube-c57ad141a9ffb67f8e7d087b92eaacd2b653b562.tar.zst
PeerTube-c57ad141a9ffb67f8e7d087b92eaacd2b653b562.zip
Rename webtorrent config to web_videos
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts2
-rw-r--r--client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html4
-rw-r--r--client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.ts14
3 files changed, 10 insertions, 10 deletions
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 {
190 hls: { 190 hls: {
191 enabled: null 191 enabled: null
192 }, 192 },
193 webtorrent: { 193 webVideos: {
194 enabled: null 194 enabled: null
195 }, 195 },
196 remoteRunners: { 196 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 @@
67 <div class="callout callout-light pt-2 mt-2 pb-0"> 67 <div class="callout callout-light pt-2 mt-2 pb-0">
68 <h3 class="callout-title" i18n>Output formats</h3> 68 <h3 class="callout-title" i18n>Output formats</h3>
69 69
70 <ng-container formGroupName="webtorrent"> 70 <ng-container formGroupName="webVideos">
71 <div class="form-group" [ngClass]="getTranscodingDisabledClass()"> 71 <div class="form-group" [ngClass]="getTranscodingDisabledClass()">
72 <my-peertube-checkbox 72 <my-peertube-checkbox
73 inputName="transcodingWebTorrentEnabled" formControlName="enabled" 73 inputName="transcodingWebVideosEnabled" formControlName="enabled"
74 i18n-labelText labelText="Web Videos enabled" 74 i18n-labelText labelText="Web Videos enabled"
75 > 75 >
76 <ng-template ptTemplate="help"> 76 <ng-template ptTemplate="help">
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 {
90 const transcodingControl = this.form.get('transcoding.enabled') 90 const transcodingControl = this.form.get('transcoding.enabled')
91 const videoStudioControl = this.form.get('videoStudio.enabled') 91 const videoStudioControl = this.form.get('videoStudio.enabled')
92 const hlsControl = this.form.get('transcoding.hls.enabled') 92 const hlsControl = this.form.get('transcoding.hls.enabled')
93 const webtorrentControl = this.form.get('transcoding.webtorrent.enabled') 93 const webVideosControl = this.form.get('transcoding.webVideos.enabled')
94 94
95 webtorrentControl.valueChanges 95 webVideosControl.valueChanges
96 .subscribe(newValue => { 96 .subscribe(newValue => {
97 if (newValue === false && !hlsControl.disabled) { 97 if (newValue === false && !hlsControl.disabled) {
98 hlsControl.disable() 98 hlsControl.disable()
@@ -105,12 +105,12 @@ export class EditVODTranscodingComponent implements OnInit, OnChanges {
105 105
106 hlsControl.valueChanges 106 hlsControl.valueChanges
107 .subscribe(newValue => { 107 .subscribe(newValue => {
108 if (newValue === false && !webtorrentControl.disabled) { 108 if (newValue === false && !webVideosControl.disabled) {
109 webtorrentControl.disable() 109 webVideosControl.disable()
110 } 110 }
111 111
112 if (newValue === true && !webtorrentControl.enabled) { 112 if (newValue === true && !webVideosControl.enabled) {
113 webtorrentControl.enable() 113 webVideosControl.enable()
114 } 114 }
115 }) 115 })
116 116
@@ -122,7 +122,7 @@ export class EditVODTranscodingComponent implements OnInit, OnChanges {
122 }) 122 })
123 123
124 transcodingControl.updateValueAndValidity() 124 transcodingControl.updateValueAndValidity()
125 webtorrentControl.updateValueAndValidity() 125 webVideosControl.updateValueAndValidity()
126 videoStudioControl.updateValueAndValidity() 126 videoStudioControl.updateValueAndValidity()
127 hlsControl.updateValueAndValidity() 127 hlsControl.updateValueAndValidity()
128 } 128 }