From d6cc05a31294285b79507443ba577753bd3e5d1c Mon Sep 17 00:00:00 2001 From: "tiago.kayaya" Date: Mon, 3 Jan 2022 18:19:11 +0100 Subject: [PATCH] save --- src/app/home/home.page.scss | 8 ++++++-- src/app/shared/header/header.page.ts | 20 +++++++++++++++++++- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/src/app/home/home.page.scss b/src/app/home/home.page.scss index 8b6ee1ac6..955c24836 100644 --- a/src/app/home/home.page.scss +++ b/src/app/home/home.page.scss @@ -4,6 +4,10 @@ ion-tab-bar{ --color: #061b52; } +ion-icon { + color: blue; +} + // Badge // -------------------------------------------------- @@ -18,7 +22,7 @@ ion-badge {/* */ /* display: inline-block;*/ - min-width: 18px; + min-width: 18px; font-size: $badge-font-size; /* font-weight: $badge-font-weight; line-height: 1; @@ -41,4 +45,4 @@ ion-badge {/* */ ion-tabs.tab .bottoms{ display: none; } -} \ No newline at end of file +} diff --git a/src/app/shared/header/header.page.ts b/src/app/shared/header/header.page.ts index 3a7671340..b8d9446ec 100644 --- a/src/app/shared/header/header.page.ts +++ b/src/app/shared/header/header.page.ts @@ -99,7 +99,25 @@ export class HeaderPage implements OnInit { } locationPathname(): string { - return window.location.pathname + let path = window.location.pathname; + if(path.includes('/home/events')){ + return '/home/events'; + } + else if(path.includes('/home/agenda')){ + return '/home/agenda'; + } + else if(path.includes('/home/gabinete-digital')){ + return '/home/gabinete-digital'; + } + else if(path.includes('/home/publications')){ + return '/home/publications'; + } + else if(path.includes('/home/chat')){ + return '/home/chat'; + } + else{ + return path; + } } async openSearch() {