diff options
Diffstat (limited to 'client/src')
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 | } |