blob: 087b80b44b994a6e1bc3cdc5573b32e73988ceb9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { I18n } from '@ngx-translate/i18n-polyfill'
import { Validators } from '@angular/forms'
import { Injectable } from '@angular/core'
import { BuildFormValidator } from '@app/shared'
@Injectable()
export class VideoChangeOwnershipValidatorsService {
readonly USERNAME: BuildFormValidator
constructor (private i18n: I18n) {
this.USERNAME = {
VALIDATORS: [ Validators.required ],
MESSAGES: {
'required': this.i18n('The username is required.')
}
}
}
}
|