aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+signup/+register/register.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+signup/+register/register.component.ts')
-rw-r--r--client/src/app/+signup/+register/register.component.ts9
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 @@
1import { Component, OnInit } from '@angular/core' 1import { Component, OnInit } from '@angular/core'
2import { FormGroup } from '@angular/forms' 2import { FormGroup } from '@angular/forms'
3import { ActivatedRoute } from '@angular/router' 3import { ActivatedRoute } from '@angular/router'
4import { AuthService, UserService } from '@app/core' 4import { AuthService } from '@app/core'
5import { HooksService } from '@app/core/plugins/hooks.service' 5import { HooksService } from '@app/core/plugins/hooks.service'
6import { InstanceAboutAccordionComponent } from '@app/shared/shared-instance'
7import { UserSignupService } from '@app/shared/shared-users'
6import { NgbAccordion } from '@ng-bootstrap/ng-bootstrap' 8import { NgbAccordion } from '@ng-bootstrap/ng-bootstrap'
7import { UserRegister } from '@shared/models' 9import { UserRegister } from '@shared/models'
8import { ServerConfig } from '@shared/models/server' 10import { ServerConfig } from '@shared/models/server'
9import { 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