From 2d7273168b42a58f12005aad1da5a8215bc111a7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 16 Jul 2021 16:26:20 +0200 Subject: Fix user creation form --- client/src/app/+admin/users/user-edit/user-create.component.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'client') 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 @@ import { Component, OnInit } from '@angular/core' -import { ActivatedRoute, Router } from '@angular/router' +import { Router } from '@angular/router' import { ConfigService } from '@app/+admin/config/shared/config.service' import { AuthService, Notifier, ScreenService, ServerService, UserService } from '@app/core' import { @@ -30,7 +30,6 @@ export class UserCreateComponent extends UserEdit implements OnInit { protected configService: ConfigService, protected screenService: ScreenService, protected auth: AuthService, - private route: ActivatedRoute, private router: Router, private notifier: Notifier, private userService: UserService @@ -87,8 +86,7 @@ export class UserCreateComponent extends UserEdit implements OnInit { } isPasswordOptional () { - const serverConfig = this.route.snapshot.data.serverConfig - return serverConfig.email.enabled + return this.serverConfig.email.enabled } getFormButtonTitle () { -- cgit v1.2.3