Verified Commit 8224e13d authored by Chocobozzz's avatar Chocobozzz
Browse files

Fix disabled inputs in admin

parent dbf49527
......@@ -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()
}
}
......@@ -104,5 +104,10 @@ export class EditVODTranscodingComponent implements OnInit, OnChanges {
videoStudioControl.setValue(false)
}
})
transcodingControl.updateValueAndValidity()
webtorrentControl.updateValueAndValidity()
videoStudioControl.updateValueAndValidity()
hlsControl.updateValueAndValidity()
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment