X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-moderation%2Fvideo-block.component.ts;h=fb47989dc23394b9bb8fb1a3ac16fe9b2b3f1db0;hb=fe88ca697d4c43b24cdc2462f5e4e83548776a51;hp=2bef9efdd770b5a11a41fdc9ff9e085b412c0625;hpb=66357162f8e1227495f09bd4f68446aad7071c6d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-moderation/video-block.component.ts b/client/src/app/shared/shared-moderation/video-block.component.ts index 2bef9efdd..fb47989dc 100644 --- a/client/src/app/shared/shared-moderation/video-block.component.ts +++ b/client/src/app/shared/shared-moderation/video-block.component.ts @@ -1,9 +1,10 @@ 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({ @@ -25,7 +26,6 @@ export class VideoBlockComponent extends FormReactive implements OnInit { constructor ( protected formValidatorService: FormValidatorService, private modalService: NgbModal, - private videoBlockValidatorsService: VideoBlockValidatorsService, private videoBlocklistService: VideoBlockService, private notifier: Notifier ) { @@ -36,7 +36,7 @@ export class VideoBlockComponent extends FormReactive implements OnInit { const defaultValues = { unfederate: 'true' } this.buildForm({ - reason: this.videoBlockValidatorsService.VIDEO_BLOCK_REASON, + reason: VIDEO_BLOCK_REASON_VALIDATOR, unfederate: null }, defaultValues) }