diff --git a/src/app/login/login.component.css b/src/app/login/login.component.css index 7ba1d6ee..f1f897af 100644 --- a/src/app/login/login.component.css +++ b/src/app/login/login.component.css @@ -11,3 +11,9 @@ .login-wrapper .login { justify-content: center; } + +.imprint { + position: absolute; + left: 5px; + bottom: 5px; +} diff --git a/src/app/login/login.component.html b/src/app/login/login.component.html index a291714e..362ce56e 100644 --- a/src/app/login/login.component.html +++ b/src/app/login/login.component.html @@ -129,5 +129,8 @@ + + {{ imprintLinkName }} + diff --git a/src/app/login/login.component.ts b/src/app/login/login.component.ts index 8dc2050f..03449c08 100644 --- a/src/app/login/login.component.ts +++ b/src/app/login/login.component.ts @@ -22,12 +22,15 @@ export class LoginComponent { public privacyPolicyRequired = true; public privacyPolicyLink = ''; public privacyPolicyLinkName = ''; + public imprintGiven = false; + public imprintLink = ''; + public imprintLinkName = ''; private Config = this.config.getConfig(); public logo; public background; - public loginactive = false; + public loginactive = true; public loginForm: FormGroup = new FormGroup({ email: new FormControl(null, [Validators.required]), @@ -66,6 +69,11 @@ export class LoginComponent { this.privacyPolicyLinkName = typedInputs.get('registration-privacy-policy-linkname')?.value ?? 'Privacy Policy'; + this.imprintLinkName = + typedInputs.get('imprint-linkname')?.value ?? 'Imprint'; + this.imprintLink = typedInputs.get('imprint-link')?.value ?? ''; + this.imprintGiven = + this.imprintLink != '' && this.imprintLinkName != ''; if (this.privacyPolicyRequired) { this.loginForm.addControl( @@ -73,6 +81,8 @@ export class LoginComponent { new FormControl(null, [Validators.required]), ); } + + this.loginactive = false; }); }