mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Fix disabled inputs in admin
This commit is contained in:
parent
dbf4952717
commit
8224e13d3b
2 changed files with 8 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue