import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core'
import { Notifier } from '@app/core'
-import { FormReactive, FormValidatorService, VideoBlockValidatorsService } from '@app/shared/shared-forms'
+import { FormReactive, FormValidatorService } from '@app/shared/shared-forms'
import { Video } from '@app/shared/shared-main'
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap/modal/modal-ref'
+import { VIDEO_BLOCK_REASON_VALIDATOR } from '../form-validators/video-block-validators'
import { VideoBlockService } from './video-block.service'
@Component({
constructor (
protected formValidatorService: FormValidatorService,
private modalService: NgbModal,
- private videoBlockValidatorsService: VideoBlockValidatorsService,
private videoBlocklistService: VideoBlockService,
private notifier: Notifier
) {
const defaultValues = { unfederate: 'true' }
this.buildForm({
- reason: this.videoBlockValidatorsService.VIDEO_BLOCK_REASON,
+ reason: VIDEO_BLOCK_REASON_VALIDATOR,
unfederate: null
}, defaultValues)
}