Fix disabled inputs in admin
This commit is contained in:
parent
dbf4952717
commit
8224e13d3b
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,5 +104,10 @@ export class EditVODTranscodingComponent implements OnInit, OnChanges {
|
||||||
videoStudioControl.setValue(false)
|
videoStudioControl.setValue(false)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
transcodingControl.updateValueAndValidity()
|
||||||
|
webtorrentControl.updateValueAndValidity()
|
||||||
|
videoStudioControl.updateValueAndValidity()
|
||||||
|
hlsControl.updateValueAndValidity()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue