From 735f1e465b98b5178a93e1df6d8303af73968928 Mon Sep 17 00:00:00 2001 From: Max Ehrlicher-Schmidt Date: Thu, 3 Dec 2020 20:58:43 +0100 Subject: [PATCH] Fix errors and warnings on login/logout --- src/app/app.component.ts | 2 +- .../sidenav-profile.component.html | 2 +- .../sidenav-profile.component.scss | 4 + src/app/pages/login/login.component.html | 77 ++++++++++--------- src/app/pages/login/login.component.scss | 5 +- 5 files changed, 51 insertions(+), 39 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 18cb82e..e12be28 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -63,8 +63,8 @@ export class AppComponent { } logout() { + this.navService.closeNav(); this.authService.logout().subscribe().add(() => this.router.navigate(['login'])); - this.sideNav.close(); } ngAfterViewInit() { diff --git a/src/app/components/sidenav-profile/sidenav-profile.component.html b/src/app/components/sidenav-profile/sidenav-profile.component.html index 275b3cd..0164f65 100644 --- a/src/app/components/sidenav-profile/sidenav-profile.component.html +++ b/src/app/components/sidenav-profile/sidenav-profile.component.html @@ -1,4 +1,4 @@ -
+

{{name}}

{{email}}

diff --git a/src/app/components/sidenav-profile/sidenav-profile.component.scss b/src/app/components/sidenav-profile/sidenav-profile.component.scss index 59bf5b8..d210ece 100644 --- a/src/app/components/sidenav-profile/sidenav-profile.component.scss +++ b/src/app/components/sidenav-profile/sidenav-profile.component.scss @@ -5,4 +5,8 @@ height:100px; border-radius:50%; margin-top:10px; +} + +.sidenav-profile { + outline: none; } \ No newline at end of file diff --git a/src/app/pages/login/login.component.html b/src/app/pages/login/login.component.html index 29f2c04..8487c7b 100644 --- a/src/app/pages/login/login.component.html +++ b/src/app/pages/login/login.component.html @@ -1,41 +1,46 @@ -
+

fLotte Login

- - E-Mail-Adresse eingeben - - - Bitte geben Sie eine E-Mail-Adresse ein. - - - Bitte geben Sie eine valide E-Mail-Adresse ein. - - +
+ + E-Mail-Adresse eingeben + + + Bitte geben Sie eine E-Mail-Adresse ein. + + + Bitte geben Sie eine valide E-Mail-Adresse ein. + + - - Passwort eingeben - - - Bitte geben Sie Ihr Passwort ein. - - - - - + + Passwort eingeben + + + Bitte geben Sie Ihr Passwort ein. + + + +
+ +
diff --git a/src/app/pages/login/login.component.scss b/src/app/pages/login/login.component.scss index 5e33d01..cf656e5 100644 --- a/src/app/pages/login/login.component.scss +++ b/src/app/pages/login/login.component.scss @@ -1,4 +1,7 @@ -#login-form { +#login-wrapper { + #login-form { + display: contents; + } display: flex; flex-direction: column; max-width: 32em;