diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-07 15:26:53 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-10-07 15:26:53 +0200 |
commit | 5c5bcea2e64daf0a66a796c89432732ed27308d2 (patch) | |
tree | 96cec8f275c5dc3d71c284453af41a4915521686 /client/src/app/+signup | |
parent | a69ea13086273fc6659c153be93f0f5b37aad733 (diff) | |
download | PeerTube-5c5bcea2e64daf0a66a796c89432732ed27308d2.tar.gz PeerTube-5c5bcea2e64daf0a66a796c89432732ed27308d2.tar.zst PeerTube-5c5bcea2e64daf0a66a796c89432732ed27308d2.zip |
Refactor form reactive
Diffstat (limited to 'client/src/app/+signup')
4 files changed, 9 insertions, 11 deletions
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' | |||
3 | import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core' | 3 | import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core' |
4 | import { FormGroup } from '@angular/forms' | 4 | import { FormGroup } from '@angular/forms' |
5 | import { VIDEO_CHANNEL_DISPLAY_NAME_VALIDATOR, VIDEO_CHANNEL_NAME_VALIDATOR } from '@app/shared/form-validators/video-channel-validators' | 5 | import { VIDEO_CHANNEL_DISPLAY_NAME_VALIDATOR, VIDEO_CHANNEL_NAME_VALIDATOR } from '@app/shared/form-validators/video-channel-validators' |
6 | import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' | 6 | import { FormReactive, FormReactiveService } from '@app/shared/shared-forms' |
7 | import { UserSignupService } from '@app/shared/shared-users' | 7 | import { UserSignupService } from '@app/shared/shared-users' |
8 | 8 | ||
9 | @Component({ | 9 | @Component({ |
@@ -19,7 +19,7 @@ export class RegisterStepChannelComponent extends FormReactive implements OnInit | |||
19 | @Output() formBuilt = new EventEmitter<FormGroup>() | 19 | @Output() formBuilt = new EventEmitter<FormGroup>() |
20 | 20 | ||
21 | constructor ( | 21 | constructor ( |
22 | protected formValidatorService: FormValidatorService, | 22 | protected formReactiveService: FormReactiveService, |
23 | private userSignupService: UserSignupService | 23 | private userSignupService: UserSignupService |
24 | ) { | 24 | ) { |
25 | super() | 25 | 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 @@ | |||
1 | import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core' | 1 | import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core' |
2 | import { FormGroup } from '@angular/forms' | 2 | import { FormGroup } from '@angular/forms' |
3 | import { | 3 | import { USER_TERMS_VALIDATOR } from '@app/shared/form-validators/user-validators' |
4 | USER_TERMS_VALIDATOR | 4 | import { FormReactive, FormReactiveService } from '@app/shared/shared-forms' |
5 | } from '@app/shared/form-validators/user-validators' | ||
6 | import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' | ||
7 | 5 | ||
8 | @Component({ | 6 | @Component({ |
9 | selector: 'my-register-step-terms', | 7 | selector: 'my-register-step-terms', |
@@ -19,7 +17,7 @@ export class RegisterStepTermsComponent extends FormReactive implements OnInit { | |||
19 | @Output() codeOfConductClick = new EventEmitter<void>() | 17 | @Output() codeOfConductClick = new EventEmitter<void>() |
20 | 18 | ||
21 | constructor ( | 19 | constructor ( |
22 | protected formValidatorService: FormValidatorService | 20 | protected formReactiveService: FormReactiveService |
23 | ) { | 21 | ) { |
24 | super() | 22 | super() |
25 | } | 23 | } |
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 { | |||
8 | USER_PASSWORD_VALIDATOR, | 8 | USER_PASSWORD_VALIDATOR, |
9 | USER_USERNAME_VALIDATOR | 9 | USER_USERNAME_VALIDATOR |
10 | } from '@app/shared/form-validators/user-validators' | 10 | } from '@app/shared/form-validators/user-validators' |
11 | import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' | 11 | import { FormReactive, FormReactiveService } from '@app/shared/shared-forms' |
12 | import { UserSignupService } from '@app/shared/shared-users' | 12 | import { UserSignupService } from '@app/shared/shared-users' |
13 | 13 | ||
14 | @Component({ | 14 | @Component({ |
@@ -23,7 +23,7 @@ export class RegisterStepUserComponent extends FormReactive implements OnInit { | |||
23 | @Output() formBuilt = new EventEmitter<FormGroup>() | 23 | @Output() formBuilt = new EventEmitter<FormGroup>() |
24 | 24 | ||
25 | constructor ( | 25 | constructor ( |
26 | protected formValidatorService: FormValidatorService, | 26 | protected formReactiveService: FormReactiveService, |
27 | private userSignupService: UserSignupService | 27 | private userSignupService: UserSignupService |
28 | ) { | 28 | ) { |
29 | super() | 29 | 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 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | import { Notifier, RedirectService, ServerService } from '@app/core' | 2 | import { Notifier, RedirectService, ServerService } from '@app/core' |
3 | import { USER_EMAIL_VALIDATOR } from '@app/shared/form-validators/user-validators' | 3 | import { USER_EMAIL_VALIDATOR } from '@app/shared/form-validators/user-validators' |
4 | import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' | 4 | import { FormReactive, FormReactiveService } from '@app/shared/shared-forms' |
5 | import { UserSignupService } from '@app/shared/shared-users' | 5 | import { UserSignupService } from '@app/shared/shared-users' |
6 | 6 | ||
7 | @Component({ | 7 | @Component({ |
@@ -14,7 +14,7 @@ export class VerifyAccountAskSendEmailComponent extends FormReactive implements | |||
14 | requiresEmailVerification = false | 14 | requiresEmailVerification = false |
15 | 15 | ||
16 | constructor ( | 16 | constructor ( |
17 | protected formValidatorService: FormValidatorService, | 17 | protected formReactiveService: FormReactiveService, |
18 | private userSignupService: UserSignupService, | 18 | private userSignupService: UserSignupService, |
19 | private serverService: ServerService, | 19 | private serverService: ServerService, |
20 | private notifier: Notifier, | 20 | private notifier: Notifier, |