From 5c5bcea2e64daf0a66a796c89432732ed27308d2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 7 Oct 2022 15:26:53 +0200 Subject: Refactor form reactive --- .../+signup/+register/steps/register-step-channel.component.ts | 4 ++-- .../app/+signup/+register/steps/register-step-terms.component.ts | 8 +++----- .../app/+signup/+register/steps/register-step-user.component.ts | 4 ++-- .../verify-account-ask-send-email.component.ts | 4 ++-- 4 files changed, 9 insertions(+), 11 deletions(-) (limited to 'client/src/app/+signup') diff --git a/client/src/app/+signup/+register/steps/register-step-channel.component.ts b/client/src/app/+signup/+register/steps/register-step-channel.component.ts index c10b568ba..df92c5145 100644 --- a/client/src/app/+signup/+register/steps/register-step-channel.component.ts +++ b/client/src/app/+signup/+register/steps/register-step-channel.component.ts @@ -3,7 +3,7 @@ import { pairwise } from 'rxjs/operators' import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core' import { FormGroup } from '@angular/forms' 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' +import { FormReactive, FormReactiveService } from '@app/shared/shared-forms' import { UserSignupService } from '@app/shared/shared-users' @Component({ @@ -19,7 +19,7 @@ export class RegisterStepChannelComponent extends FormReactive implements OnInit @Output() formBuilt = new EventEmitter() constructor ( - protected formValidatorService: FormValidatorService, + protected formReactiveService: FormReactiveService, private userSignupService: UserSignupService ) { super() diff --git a/client/src/app/+signup/+register/steps/register-step-terms.component.ts b/client/src/app/+signup/+register/steps/register-step-terms.component.ts index 87d16696e..2df963b30 100644 --- a/client/src/app/+signup/+register/steps/register-step-terms.component.ts +++ b/client/src/app/+signup/+register/steps/register-step-terms.component.ts @@ -1,9 +1,7 @@ import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core' import { FormGroup } from '@angular/forms' -import { - USER_TERMS_VALIDATOR -} from '@app/shared/form-validators/user-validators' -import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' +import { USER_TERMS_VALIDATOR } from '@app/shared/form-validators/user-validators' +import { FormReactive, FormReactiveService } from '@app/shared/shared-forms' @Component({ selector: 'my-register-step-terms', @@ -19,7 +17,7 @@ export class RegisterStepTermsComponent extends FormReactive implements OnInit { @Output() codeOfConductClick = new EventEmitter() constructor ( - protected formValidatorService: FormValidatorService + protected formReactiveService: FormReactiveService ) { super() } diff --git a/client/src/app/+signup/+register/steps/register-step-user.component.ts b/client/src/app/+signup/+register/steps/register-step-user.component.ts index b89e38a28..822f8f5c5 100644 --- a/client/src/app/+signup/+register/steps/register-step-user.component.ts +++ b/client/src/app/+signup/+register/steps/register-step-user.component.ts @@ -8,7 +8,7 @@ import { USER_PASSWORD_VALIDATOR, USER_USERNAME_VALIDATOR } from '@app/shared/form-validators/user-validators' -import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' +import { FormReactive, FormReactiveService } from '@app/shared/shared-forms' import { UserSignupService } from '@app/shared/shared-users' @Component({ @@ -23,7 +23,7 @@ export class RegisterStepUserComponent extends FormReactive implements OnInit { @Output() formBuilt = new EventEmitter() constructor ( - protected formValidatorService: FormValidatorService, + protected formReactiveService: FormReactiveService, private userSignupService: UserSignupService ) { super() diff --git a/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.ts b/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.ts index a0ed66a3a..06905f678 100644 --- a/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.ts +++ b/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.ts @@ -1,7 +1,7 @@ import { Component, OnInit } from '@angular/core' import { Notifier, RedirectService, ServerService } from '@app/core' import { USER_EMAIL_VALIDATOR } from '@app/shared/form-validators/user-validators' -import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' +import { FormReactive, FormReactiveService } from '@app/shared/shared-forms' import { UserSignupService } from '@app/shared/shared-users' @Component({ @@ -14,7 +14,7 @@ export class VerifyAccountAskSendEmailComponent extends FormReactive implements requiresEmailVerification = false constructor ( - protected formValidatorService: FormValidatorService, + protected formReactiveService: FormReactiveService, private userSignupService: UserSignupService, private serverService: ServerService, private notifier: Notifier, -- cgit v1.2.3