fix: remove unnecessary code
This commit is contained in:
@@ -43,7 +43,6 @@ export class HeaderComponent implements AfterViewInit, OnDestroy {
|
|||||||
toggleProfileMenu(event: MouseEvent) {
|
toggleProfileMenu(event: MouseEvent) {
|
||||||
if (this.profileBtn && this.profileBtn.nativeElement.contains(event.target as Node)) {
|
if (this.profileBtn && this.profileBtn.nativeElement.contains(event.target as Node)) {
|
||||||
this.menuOpened = !this.menuOpened;
|
this.menuOpened = !this.menuOpened;
|
||||||
console.log(this.menuOpened);
|
|
||||||
} else {
|
} else {
|
||||||
this.menuOpened = false;
|
this.menuOpened = false;
|
||||||
}
|
}
|
||||||
@@ -66,14 +65,6 @@ export class HeaderComponent implements AfterViewInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
get menuBtnClass(): string {
|
|
||||||
return `lni ${this.menuOpened ? "lni-close" : "lni-menu"} text-white`;
|
|
||||||
}
|
|
||||||
|
|
||||||
get searchBarClass(): string {
|
|
||||||
return `search-bar bg-slate-300 md:w-full w-full md:m-0 ms-2 me-2 md:h-6 h-10 md:flex justify-start flex-row items-center rounded-md ${this.menuOpened ? "flex" : "hidden"}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
ngOnDestroy(): void {
|
ngOnDestroy(): void {
|
||||||
this.destroy$.next();
|
this.destroy$.next();
|
||||||
this.destroy$.complete();
|
this.destroy$.complete();
|
||||||
|
|||||||
Reference in New Issue
Block a user