From f89fe8e50a6bba001e503940304c753707b123bd Mon Sep 17 00:00:00 2001 From: Mario Romano Date: Wed, 4 Jan 2017 22:29:01 +0000 Subject: [PATCH] #1393 remove old redirect code (#1394) --- demo-shell-ng2/app/app.component.html | 2 +- demo-shell-ng2/app/app.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/demo-shell-ng2/app/app.component.html b/demo-shell-ng2/app/app.component.html index 5ee422e46d..aeee137ec9 100644 --- a/demo-shell-ng2/app/app.component.html +++ b/demo-shell-ng2/app/app.component.html @@ -1,6 +1,6 @@
-
+
diff --git a/demo-shell-ng2/app/app.component.ts b/demo-shell-ng2/app/app.component.ts index a6e339bb30..58cb6780ea 100644 --- a/demo-shell-ng2/app/app.component.ts +++ b/demo-shell-ng2/app/app.component.ts @@ -64,12 +64,12 @@ export class AppComponent { } redirectToLoginPageIfNotLoggedIn(): void { - if (!this.isLoginPage() && !this.authService.isLoggedIn()) { + if (!this.authService.isLoggedIn()) { this.router.navigate(['/login']); } } - isLoginPage(): boolean { + isAPageWithHeaderBar(): boolean { return location.pathname === '/login' || location.pathname === '/settings'; }