ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix error in form when scheduling video publication
Chocobozzz4adf26735fae
diff --git a/client/src/app/shared/forms/form-reactive.ts b/client/src/app/shared/forms/form-reactive.tsindex 0d40b6f4ae..6aec2937da 100644--- a/client/src/app/shared/forms/form-reactive.ts+++ b/client/src/app/shared/forms/form-reactive.ts@@ -57,7 +57,7 @@ export abstract class FormReactive {// Don't care if dirty on force checkconst 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 ] + ' 'diff --git a/client/src/app/videos/+video-edit/shared/video-edit.component.ts b/client/src/app/videos/+video-edit/shared/video-edit.component.tsindex c80efd8027..8345645f66 100644--- a/client/src/app/videos/+video-edit/shared/video-edit.component.ts+++ b/client/src/app/videos/+video-edit/shared/video-edit.component.ts@@ -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 validatorsthis.form.controls[ 'privacy' ].valueChanges.pipe(map(res => parseInt(res.toString(), 10)))