remove duplicated header set background to event pages

This commit is contained in:
Peter Maquiran
2023-03-07 11:48:38 +01:00
parent 5fe1abcffa
commit 8ed49dc200
53 changed files with 39 additions and 166 deletions
+4 -1
View File
@@ -52,6 +52,7 @@ export class HeaderPage implements OnInit {
) {
this.loggeduser = SessionStore.user;
router.events.subscribe((val) => {
this.hideSearch();
this.showSearch = false;
this.canOpenSearch = true;
this.showProfileModal = false
@@ -94,8 +95,10 @@ export class HeaderPage implements OnInit {
}
hideSearch() {
if (this.router.url == '/home/events' || this.router.url == '/home/chat') {
if (this.router.url.startsWith('/home/events') || this.router.url.startsWith('/home/chat')) {
this.hideSearchBtn = true;
} else {
this.hideSearchBtn = false;
}
}