aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
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/shared
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/shared')
-rw-r--r--client/src/app/shared/forms/form-reactive.ts2
1 files changed, 1 insertions, 1 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 ] + ' '