diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 16:26:20 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-16 16:44:09 +0200 |
commit | 2d7273168b42a58f12005aad1da5a8215bc111a7 (patch) | |
tree | 16646345c0be9abf96d1792d68ab24af2ed98144 /client/src/app/+admin/users/user-edit/user-create.component.ts | |
parent | 75103a4d89a8c1f879946a0341bd89c2999d9354 (diff) | |
download | PeerTube-2d7273168b42a58f12005aad1da5a8215bc111a7.tar.gz PeerTube-2d7273168b42a58f12005aad1da5a8215bc111a7.tar.zst PeerTube-2d7273168b42a58f12005aad1da5a8215bc111a7.zip |
Fix user creation form
Diffstat (limited to 'client/src/app/+admin/users/user-edit/user-create.component.ts')
-rw-r--r-- | client/src/app/+admin/users/user-edit/user-create.component.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/client/src/app/+admin/users/user-edit/user-create.component.ts b/client/src/app/+admin/users/user-edit/user-create.component.ts index da333240c..c26ad1208 100644 --- a/client/src/app/+admin/users/user-edit/user-create.component.ts +++ b/client/src/app/+admin/users/user-edit/user-create.component.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | import { ActivatedRoute, Router } from '@angular/router' | 2 | import { Router } from '@angular/router' |
3 | import { ConfigService } from '@app/+admin/config/shared/config.service' | 3 | import { ConfigService } from '@app/+admin/config/shared/config.service' |
4 | import { AuthService, Notifier, ScreenService, ServerService, UserService } from '@app/core' | 4 | import { AuthService, Notifier, ScreenService, ServerService, UserService } from '@app/core' |
5 | import { | 5 | import { |
@@ -30,7 +30,6 @@ export class UserCreateComponent extends UserEdit implements OnInit { | |||
30 | protected configService: ConfigService, | 30 | protected configService: ConfigService, |
31 | protected screenService: ScreenService, | 31 | protected screenService: ScreenService, |
32 | protected auth: AuthService, | 32 | protected auth: AuthService, |
33 | private route: ActivatedRoute, | ||
34 | private router: Router, | 33 | private router: Router, |
35 | private notifier: Notifier, | 34 | private notifier: Notifier, |
36 | private userService: UserService | 35 | private userService: UserService |
@@ -87,8 +86,7 @@ export class UserCreateComponent extends UserEdit implements OnInit { | |||
87 | } | 86 | } |
88 | 87 | ||
89 | isPasswordOptional () { | 88 | isPasswordOptional () { |
90 | const serverConfig = this.route.snapshot.data.serverConfig | 89 | return this.serverConfig.email.enabled |
91 | return serverConfig.email.enabled | ||
92 | } | 90 | } |
93 | 91 | ||
94 | getFormButtonTitle () { | 92 | getFormButtonTitle () { |