aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-06-07 11:35:06 +0200
committerChocobozzz <me@florianbigard.com>2019-06-07 11:35:06 +0200
commit4adf26735fae8caeb8172c909afd0f3ca32d695f (patch)
tree22d619d9e0c88cb5e18a7308615fab97c42d5241 /client/src/app
parentf238aec54f93bf6ef73ef17be23159ecd1d83f96 (diff)
downloadPeerTube-4adf26735fae8caeb8172c909afd0f3ca32d695f.tar.gz
PeerTube-4adf26735fae8caeb8172c909afd0f3ca32d695f.tar.zst
PeerTube-4adf26735fae8caeb8172c909afd0f3ca32d695f.zip
Fix error in form when scheduling video publication
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/shared/forms/form-reactive.ts2
-rw-r--r--client/src/app/videos/+video-edit/shared/video-edit.component.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/forms/form-reactive.ts b/client/src/app/shared/forms/form-reactive.ts
index 0d40b6f4a..6aec2937d 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 {
57 57
58 // Don't care if dirty on force check 58 // Don't care if dirty on force check
59 const isDirty = control.dirty || forceCheck === true 59 const isDirty = control.dirty || forceCheck === true
60 if (control && isDirty && !control.valid) { 60 if (control && isDirty && control.enabled && !control.valid) {
61 const messages = validationMessages[ field ] 61 const messages = validationMessages[ field ]
62 for (const key of Object.keys(control.errors)) { 62 for (const key of Object.keys(control.errors)) {
63 formErrors[ field ] += messages[ key ] + ' ' 63 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.ts
index c80efd802..8345645f6 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 {
189 } 189 }
190 190
191 private trackPrivacyChange () { 191 private trackPrivacyChange () {
192 // We will update the "support" field depending on the channel 192 // We will update the schedule input and the wait transcoding checkbox validators
193 this.form.controls[ 'privacy' ] 193 this.form.controls[ 'privacy' ]
194 .valueChanges 194 .valueChanges
195 .pipe(map(res => parseInt(res.toString(), 10))) 195 .pipe(map(res => parseInt(res.toString(), 10)))