aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-07-28 09:45:15 +0200
committerChocobozzz <me@florianbigard.com>2022-07-28 09:45:15 +0200
commit8224e13d3b59ff4420d6c323c95d829ca014a442 (patch)
treed32e5d7b146d7fb6b9fa6754375cc4d6a3b49498 /client/src/app
parentdbf49527172c6b97385481610786688effbe5c13 (diff)
downloadPeerTube-8224e13d3b59ff4420d6c323c95d829ca014a442.tar.gz
PeerTube-8224e13d3b59ff4420d6c323c95d829ca014a442.tar.zst
PeerTube-8224e13d3b59ff4420d6c323c95d829ca014a442.zip
Fix disabled inputs in admin
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.ts4
-rw-r--r--client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.ts5
2 files changed, 8 insertions, 1 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.ts
index 56227d11c..29910369a 100644
--- a/client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.ts
+++ b/client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.ts
@@ -103,7 +103,7 @@ export class EditBasicConfigurationComponent implements OnInit, OnChanges {
103 signupControl.valueChanges 103 signupControl.valueChanges
104 .pipe(pairwise()) 104 .pipe(pairwise())
105 .subscribe(([ oldValue, newValue ]) => { 105 .subscribe(([ oldValue, newValue ]) => {
106 if (oldValue !== true && newValue === true) { 106 if (oldValue === false && newValue === true) {
107 /* eslint-disable max-len */ 107 /* eslint-disable max-len */
108 this.signupAlertMessage = $localize`You enabled signup: we automatically enabled the "Block new videos automatically" checkbox of the "Videos" section just below.` 108 this.signupAlertMessage = $localize`You enabled signup: we automatically enabled the "Block new videos automatically" checkbox of the "Videos" section just below.`
109 109
@@ -118,5 +118,7 @@ export class EditBasicConfigurationComponent implements OnInit, OnChanges {
118 }) 118 })
119 } 119 }
120 }) 120 })
121
122 signupControl.updateValueAndValidity()
121 } 123 }
122} 124}
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 a38438e3a..184dfd921 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
@@ -104,5 +104,10 @@ export class EditVODTranscodingComponent implements OnInit, OnChanges {
104 videoStudioControl.setValue(false) 104 videoStudioControl.setValue(false)
105 } 105 }
106 }) 106 })
107
108 transcodingControl.updateValueAndValidity()
109 webtorrentControl.updateValueAndValidity()
110 videoStudioControl.updateValueAndValidity()
111 hlsControl.updateValueAndValidity()
107 } 112 }
108} 113}