Fix user creation form

pull/4279/head
Chocobozzz 2021-07-16 16:26:20 +02:00
parent 75103a4d89
commit 2d7273168b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 4 deletions

View File

@ -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 () {