diff options
Diffstat (limited to 'client/src/app/+signup/+register/register-step-channel.component.ts')
-rw-r--r-- | client/src/app/+signup/+register/register-step-channel.component.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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 d965a7865..1bc0ccfd3 100644 --- a/client/src/app/+signup/+register/register-step-channel.component.ts +++ b/client/src/app/+signup/+register/register-step-channel.component.ts | |||
@@ -2,9 +2,9 @@ import { concat, of } from 'rxjs' | |||
2 | import { pairwise } from 'rxjs/operators' | 2 | 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 { UserService } from '@app/core' | ||
6 | 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' |
7 | import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' | 6 | import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' |
7 | import { UserSignupService } from '@app/shared/shared-users' | ||
8 | 8 | ||
9 | @Component({ | 9 | @Component({ |
10 | selector: 'my-register-step-channel', | 10 | selector: 'my-register-step-channel', |
@@ -17,7 +17,7 @@ export class RegisterStepChannelComponent extends FormReactive implements OnInit | |||
17 | 17 | ||
18 | constructor ( | 18 | constructor ( |
19 | protected formValidatorService: FormValidatorService, | 19 | protected formValidatorService: FormValidatorService, |
20 | private userService: UserService | 20 | private userSignupService: UserSignupService |
21 | ) { | 21 | ) { |
22 | super() | 22 | super() |
23 | } | 23 | } |
@@ -48,7 +48,7 @@ export class RegisterStepChannelComponent extends FormReactive implements OnInit | |||
48 | private onDisplayNameChange (oldDisplayName: string, newDisplayName: string) { | 48 | private onDisplayNameChange (oldDisplayName: string, newDisplayName: string) { |
49 | const name = this.form.value['name'] || '' | 49 | const name = this.form.value['name'] || '' |
50 | 50 | ||
51 | const newName = this.userService.getNewUsername(oldDisplayName, newDisplayName, name) | 51 | const newName = this.userSignupService.getNewUsername(oldDisplayName, newDisplayName, name) |
52 | this.form.patchValue({ name: newName }) | 52 | this.form.patchValue({ name: newName }) |
53 | } | 53 | } |
54 | } | 54 | } |