mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Migrate client to eslint
This commit is contained in:
parent
adb8809d43
commit
9df52d660f
215 changed files with 2052 additions and 1196 deletions
|
@ -51,7 +51,7 @@ export abstract class FormReactive {
|
|||
}
|
||||
|
||||
// clear previous error message (if any)
|
||||
formErrors[ field ] = ''
|
||||
formErrors[field] = ''
|
||||
const control = form.get(field)
|
||||
|
||||
if (control.dirty) this.formChanged = true
|
||||
|
@ -59,9 +59,9 @@ export abstract class FormReactive {
|
|||
// Don't care if dirty on force check
|
||||
const isDirty = control.dirty || forceCheck === true
|
||||
if (control && isDirty && control.enabled && !control.valid) {
|
||||
const messages = validationMessages[ field ]
|
||||
const messages = validationMessages[field]
|
||||
for (const key of Object.keys(control.errors)) {
|
||||
formErrors[ field ] += messages[ key ] + ' '
|
||||
formErrors[field] += messages[key] + ' '
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue