From 21e6dc811d18637dbadb31c724420361913dbc29 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 21 Jan 2020 10:52:22 +0100 Subject: Cleanup login form --- client/src/app/login/login.component.ts | 8 -------- 1 file changed, 8 deletions(-) (limited to 'client/src/app/login/login.component.ts') diff --git a/client/src/app/login/login.component.ts b/client/src/app/login/login.component.ts index 1394d6b58..580f28822 100644 --- a/client/src/app/login/login.component.ts +++ b/client/src/app/login/login.component.ts @@ -22,9 +22,6 @@ export class LoginComponent extends FormReactive implements OnInit { error: string = null forgotPasswordEmail = '' - from = { - upload: false - } private openedForgotPasswordModal: NgbModalRef private serverConfig: ServerConfig @@ -47,17 +44,12 @@ export class LoginComponent extends FormReactive implements OnInit { return this.serverConfig.signup.allowed === true } - get instancesIndexUrl () { - return this.serverConfig.followings.instance.autoFollowIndex.indexUrl || 'https://instances.joinpeertube.org' - } - isEmailDisabled () { return this.serverConfig.email.enabled === false } ngOnInit () { this.serverConfig = this.route.snapshot.data.serverConfig - this.from.upload = Boolean(this.route.snapshot.paramMap.get('fromUpload')) this.buildForm({ username: this.loginValidatorsService.LOGIN_USERNAME, -- cgit v1.2.3