Reorganize client shared modules
[oweals/peertube.git] / client / src / app / shared / shared-forms / form-validators / video-accept-ownership-validators.service.ts
1 import { I18n } from '@ngx-translate/i18n-polyfill'
2 import { Validators } from '@angular/forms'
3 import { Injectable } from '@angular/core'
4 import { BuildFormValidator } from './form-validator.service'
5
6 @Injectable()
7 export class VideoAcceptOwnershipValidatorsService {
8   readonly CHANNEL: BuildFormValidator
9
10   constructor (private i18n: I18n) {
11     this.CHANNEL = {
12       VALIDATORS: [ Validators.required ],
13       MESSAGES: {
14         'required': this.i18n('The channel is required.')
15       }
16     }
17   }
18 }