Fix disabled inputs in admin

This commit is contained in:
Chocobozzz 2022-07-28 09:45:15 +02:00
parent dbf4952717
commit 8224e13d3b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 8 additions and 1 deletions

View File

@ -103,7 +103,7 @@ export class EditBasicConfigurationComponent implements OnInit, OnChanges {
signupControl.valueChanges signupControl.valueChanges
.pipe(pairwise()) .pipe(pairwise())
.subscribe(([ oldValue, newValue ]) => { .subscribe(([ oldValue, newValue ]) => {
if (oldValue !== true && newValue === true) { if (oldValue === false && newValue === true) {
/* eslint-disable max-len */ /* 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.` 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()
} }
} }

View File

@ -104,5 +104,10 @@ export class EditVODTranscodingComponent implements OnInit, OnChanges {
videoStudioControl.setValue(false) videoStudioControl.setValue(false)
} }
}) })
transcodingControl.updateValueAndValidity()
webtorrentControl.updateValueAndValidity()
videoStudioControl.updateValueAndValidity()
hlsControl.updateValueAndValidity()
} }
} }