From d1f719ac653e34769788342a5e6768f1dc9f02c7 Mon Sep 17 00:00:00 2001 From: Marcos Castilhos <221008300@aluno.unb.br> Date: Thu, 30 Nov 2023 18:25:19 -0300 Subject: [PATCH] =?UTF-8?q?Adiciona=20m=C3=A9todo=20getActualRoute?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/components/background/background.component.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app/components/background/background.component.ts b/src/app/components/background/background.component.ts index deec8ea7..c4d9f2ff 100644 --- a/src/app/components/background/background.component.ts +++ b/src/app/components/background/background.component.ts @@ -11,7 +11,6 @@ import { AppComponent } from 'src/app/app.component'; export class BackgroundComponent implements OnInit { items: MenuItem[] = []; mobileDevide: boolean = true; - isLoginPage: boolean = false; constructor() {} @@ -23,7 +22,6 @@ export class BackgroundComponent implements OnInit { }, ]; this.identifiesUserDevice(); - this.getActiveRoute(); } identifiesUserDevice(): void { @@ -40,7 +38,7 @@ export class BackgroundComponent implements OnInit { this.mobileDevide = false; } } - getActiveRoute(): boolean { - return window.location.pathname === '/login'; + getActualRoute(): string { + return window.location.pathname; } }