diff options
author | Chocobozzz <me@florianbigard.com> | 2022-01-21 11:03:25 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-01-21 11:03:25 +0100 |
commit | d92d070c91ee73657f2e3a5756954ef63fdba306 (patch) | |
tree | 7948b03e025b8878d64c45b5a969871667dab5f1 /client/src/app/+signup/+register/register.component.ts | |
parent | cce70ae5ca3a2bfd893a7a8c457086151470de70 (diff) | |
download | PeerTube-d92d070c91ee73657f2e3a5756954ef63fdba306.tar.gz PeerTube-d92d070c91ee73657f2e3a5756954ef63fdba306.tar.zst PeerTube-d92d070c91ee73657f2e3a5756954ef63fdba306.zip |
Split user service
Diffstat (limited to 'client/src/app/+signup/+register/register.component.ts')
-rw-r--r-- | client/src/app/+signup/+register/register.component.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/client/src/app/+signup/+register/register.component.ts b/client/src/app/+signup/+register/register.component.ts index bb7276459..b4a7c0d0e 100644 --- a/client/src/app/+signup/+register/register.component.ts +++ b/client/src/app/+signup/+register/register.component.ts | |||
@@ -1,12 +1,13 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | import { FormGroup } from '@angular/forms' | 2 | import { FormGroup } from '@angular/forms' |
3 | import { ActivatedRoute } from '@angular/router' | 3 | import { ActivatedRoute } from '@angular/router' |
4 | import { AuthService, UserService } from '@app/core' | 4 | import { AuthService } from '@app/core' |
5 | import { HooksService } from '@app/core/plugins/hooks.service' | 5 | import { HooksService } from '@app/core/plugins/hooks.service' |
6 | import { InstanceAboutAccordionComponent } from '@app/shared/shared-instance' | ||
7 | import { UserSignupService } from '@app/shared/shared-users' | ||
6 | import { NgbAccordion } from '@ng-bootstrap/ng-bootstrap' | 8 | import { NgbAccordion } from '@ng-bootstrap/ng-bootstrap' |
7 | import { UserRegister } from '@shared/models' | 9 | import { UserRegister } from '@shared/models' |
8 | import { ServerConfig } from '@shared/models/server' | 10 | import { ServerConfig } from '@shared/models/server' |
9 | import { InstanceAboutAccordionComponent } from '@app/shared/shared-instance' | ||
10 | 11 | ||
11 | @Component({ | 12 | @Component({ |
12 | selector: 'my-register', | 13 | selector: 'my-register', |
@@ -49,7 +50,7 @@ export class RegisterComponent implements OnInit { | |||
49 | constructor ( | 50 | constructor ( |
50 | private route: ActivatedRoute, | 51 | private route: ActivatedRoute, |
51 | private authService: AuthService, | 52 | private authService: AuthService, |
52 | private userService: UserService, | 53 | private userSignupService: UserSignupService, |
53 | private hooks: HooksService | 54 | private hooks: HooksService |
54 | ) { } | 55 | ) { } |
55 | 56 | ||
@@ -128,7 +129,7 @@ export class RegisterComponent implements OnInit { | |||
128 | 'filter:api.signup.registration.create.params' | 129 | 'filter:api.signup.registration.create.params' |
129 | ) | 130 | ) |
130 | 131 | ||
131 | this.userService.signup(body).subscribe({ | 132 | this.userSignupService.signup(body).subscribe({ |
132 | next: () => { | 133 | next: () => { |
133 | this.signupDone = true | 134 | this.signupDone = true |
134 | 135 | ||