mirror of https://github.com/Chocobozzz/PeerTube
Fix user creation form
parent
75103a4d89
commit
2d7273168b
|
@ -1,5 +1,5 @@
|
||||||
import { Component, OnInit } from '@angular/core'
|
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 { ConfigService } from '@app/+admin/config/shared/config.service'
|
||||||
import { AuthService, Notifier, ScreenService, ServerService, UserService } from '@app/core'
|
import { AuthService, Notifier, ScreenService, ServerService, UserService } from '@app/core'
|
||||||
import {
|
import {
|
||||||
|
@ -30,7 +30,6 @@ export class UserCreateComponent extends UserEdit implements OnInit {
|
||||||
protected configService: ConfigService,
|
protected configService: ConfigService,
|
||||||
protected screenService: ScreenService,
|
protected screenService: ScreenService,
|
||||||
protected auth: AuthService,
|
protected auth: AuthService,
|
||||||
private route: ActivatedRoute,
|
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private notifier: Notifier,
|
private notifier: Notifier,
|
||||||
private userService: UserService
|
private userService: UserService
|
||||||
|
@ -87,8 +86,7 @@ export class UserCreateComponent extends UserEdit implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
isPasswordOptional () {
|
isPasswordOptional () {
|
||||||
const serverConfig = this.route.snapshot.data.serverConfig
|
return this.serverConfig.email.enabled
|
||||||
return serverConfig.email.enabled
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getFormButtonTitle () {
|
getFormButtonTitle () {
|
||||||
|
|
Loading…
Reference in New Issue