]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix disabled inputs in admin
authorChocobozzz <me@florianbigard.com>
Thu, 28 Jul 2022 07:45:15 +0000 (09:45 +0200)
committerChocobozzz <me@florianbigard.com>
Thu, 28 Jul 2022 07:45:15 +0000 (09:45 +0200)
client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.ts
client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.ts

index 56227d11c686dbe9be5cea67416c652f9e0a7721..29910369a9da93faaf424e744d73647e88957392 100644 (file)
@@ -103,7 +103,7 @@ export class EditBasicConfigurationComponent implements OnInit, OnChanges {
     signupControl.valueChanges
       .pipe(pairwise())
       .subscribe(([ oldValue, newValue ]) => {
-        if (oldValue !== true && newValue === true) {
+        if (oldValue === false && newValue === true) {
           /* eslint-disable max-len */
           this.signupAlertMessage = $localize`You enabled signup: we automatically enabled the "Block new videos automatically" checkbox of the "Videos" section just below.`
 
@@ -118,5 +118,7 @@ export class EditBasicConfigurationComponent implements OnInit, OnChanges {
           })
         }
       })
+
+    signupControl.updateValueAndValidity()
   }
 }
index a38438e3a53fbe11fef4050bb2cf79355a5492a0..184dfd9211bfa96bf065b74d9742c3da384ae2ec 100644 (file)
@@ -104,5 +104,10 @@ export class EditVODTranscodingComponent implements OnInit, OnChanges {
                   videoStudioControl.setValue(false)
                 }
               })
+
+    transcodingControl.updateValueAndValidity()
+    webtorrentControl.updateValueAndValidity()
+    videoStudioControl.updateValueAndValidity()
+    hlsControl.updateValueAndValidity()
   }
 }