X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bsignup%2F%2Bregister%2Fregister-step-channel.component.ts;h=d965a786550697e5a4bd54f53b2ecda715805fe9;hb=c7027c06e9a73dad99d3f9bd9937a41a763850ce;hp=e434b91a7796c6e9ebaf09d6313da0f66aa8037f;hpb=b6a1dd4d1b3b0032f8b968e72cbd074f646e8827;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+signup/+register/register-step-channel.component.ts b/client/src/app/+signup/+register/register-step-channel.component.ts index e434b91a7..d965a7865 100644 --- a/client/src/app/+signup/+register/register-step-channel.component.ts +++ b/client/src/app/+signup/+register/register-step-channel.component.ts @@ -1,10 +1,10 @@ +import { concat, of } from 'rxjs' +import { pairwise } from 'rxjs/operators' import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core' -import { AuthService } from '@app/core' -import { FormReactive, UserService, VideoChannelValidatorsService } from '@app/shared' -import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' import { FormGroup } from '@angular/forms' -import { pairwise } from 'rxjs/operators' -import { concat, of } from 'rxjs' +import { UserService } from '@app/core' +import { VIDEO_CHANNEL_DISPLAY_NAME_VALIDATOR, VIDEO_CHANNEL_NAME_VALIDATOR } from '@app/shared/form-validators/video-channel-validators' +import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' @Component({ selector: 'my-register-step-channel', @@ -17,9 +17,7 @@ export class RegisterStepChannelComponent extends FormReactive implements OnInit constructor ( protected formValidatorService: FormValidatorService, - private authService: AuthService, - private userService: UserService, - private videoChannelValidatorsService: VideoChannelValidatorsService + private userService: UserService ) { super() } @@ -30,8 +28,8 @@ export class RegisterStepChannelComponent extends FormReactive implements OnInit ngOnInit () { this.buildForm({ - displayName: this.videoChannelValidatorsService.VIDEO_CHANNEL_DISPLAY_NAME, - name: this.videoChannelValidatorsService.VIDEO_CHANNEL_NAME + displayName: VIDEO_CHANNEL_DISPLAY_NAME_VALIDATOR, + name: VIDEO_CHANNEL_NAME_VALIDATOR }) setTimeout(() => this.formBuilt.emit(this.form))