mirror of https://github.com/Chocobozzz/PeerTube
Fix error in form when scheduling video publication
parent
f238aec54f
commit
4adf26735f
|
@ -57,7 +57,7 @@ export abstract class FormReactive {
|
|||
|
||||
// Don't care if dirty on force check
|
||||
const isDirty = control.dirty || forceCheck === true
|
||||
if (control && isDirty && !control.valid) {
|
||||
if (control && isDirty && control.enabled && !control.valid) {
|
||||
const messages = validationMessages[ field ]
|
||||
for (const key of Object.keys(control.errors)) {
|
||||
formErrors[ field ] += messages[ key ] + ' '
|
||||
|
|
|
@ -189,7 +189,7 @@ export class VideoEditComponent implements OnInit, OnDestroy {
|
|||
}
|
||||
|
||||
private trackPrivacyChange () {
|
||||
// We will update the "support" field depending on the channel
|
||||
// We will update the schedule input and the wait transcoding checkbox validators
|
||||
this.form.controls[ 'privacy' ]
|
||||
.valueChanges
|
||||
.pipe(map(res => parseInt(res.toString(), 10)))
|
||||
|
|
Loading…
Reference in New Issue