]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix error in form when scheduling video publication
authorChocobozzz <me@florianbigard.com>
Fri, 7 Jun 2019 09:35:06 +0000 (11:35 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 7 Jun 2019 09:35:06 +0000 (11:35 +0200)
client/src/app/shared/forms/form-reactive.ts
client/src/app/videos/+video-edit/shared/video-edit.component.ts

index 0d40b6f4ae8715eaa172235f14e8e87dca6bbd63..6aec2937da4bf1eb5a42e7d649741781250cf38a 100644 (file)
@@ -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 ] + ' '
index c80efd80272f1d371ee38fdff769a9e513c7aace..8345645f661dc525d37e4ee12350c2b651a9931b 100644 (file)
@@ -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)))