aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-16 16:26:20 +0200
committerChocobozzz <me@florianbigard.com>2021-07-16 16:26:20 +0200
commitf4e5ac1ffee0ff9278c00dd9cec74efbd80bf2eb (patch)
tree63d40eb3589e7b273874b0ca1a4dc60866eab6bf /client/src/app
parent3b6195f7993f1662e94994a2ea64390f5cecac62 (diff)
downloadPeerTube-f4e5ac1ffee0ff9278c00dd9cec74efbd80bf2eb.tar.gz
PeerTube-f4e5ac1ffee0ff9278c00dd9cec74efbd80bf2eb.tar.zst
PeerTube-f4e5ac1ffee0ff9278c00dd9cec74efbd80bf2eb.zip
Fix user creation form
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/+admin/users/user-edit/user-create.component.ts6
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 @@
1import { Component, OnInit } from '@angular/core' 1import { Component, OnInit } from '@angular/core'
2import { ActivatedRoute, Router } from '@angular/router' 2import { Router } from '@angular/router'
3import { ConfigService } from '@app/+admin/config/shared/config.service' 3import { ConfigService } from '@app/+admin/config/shared/config.service'
4import { AuthService, Notifier, ScreenService, ServerService, UserService } from '@app/core' 4import { AuthService, Notifier, ScreenService, ServerService, UserService } from '@app/core'
5import { 5import {
@@ -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 () {