SUPPORT-9601: remove landing from app_header

This commit is contained in:
adel.ka 2025-11-25 12:32:33 +03:00
parent a5df472819
commit 0cb238f91a
2 changed files with 6 additions and 18 deletions

View file

@ -1,14 +1,10 @@
<nav class="header" id="webbpm-header" [ngClass]="{'header-landing': isLanding}">
<div *ngIf="isLanding">
<div class="header-logo"></div>
<div class="header-title">Личный кабинет для юридических лиц</div>
</div>
<div *ngIf="!isLanding" class="header-logo">
<nav class="header" id="webbpm-header">
<div class="header-logo">
<div class="logo"><a routerLink="/"></a></div>
<div class="main-page" routerLinkActive="active" [routerLinkActiveOptions]="{exact: true}"><a routerLink="/">Главная</a></div>
<div class="header-menu-left" routerLinkActive="active"><a routerLink="/filesentlog">Журнал взаимодействий</a></div>
</div>
<div *ngIf="!isLanding" class="header-menu">
<div class="header-menu">
<div ngbDropdown class="logout" log-out></div>
</div>
</nav>

View file

@ -1,5 +1,5 @@
import {ChangeDetectionStrategy, ChangeDetectorRef, Component} from "@angular/core";
import {NavigationStart, Router} from "@angular/router";
import {ChangeDetectionStrategy,Component} from "@angular/core";
import {Router} from "@angular/router";
@Component({
moduleId: module.id,
@ -8,15 +8,7 @@ import {NavigationStart, Router} from "@angular/router";
changeDetection: ChangeDetectionStrategy.OnPush
})
export class AppHeaderComponent {
public isLanding: boolean = false;
constructor(protected router: Router,
private cd: ChangeDetectorRef) {
router.events.subscribe((event) => {
if (event instanceof NavigationStart) {
this.isLanding = event.url == '/home';
this.cd.markForCheck();
}
})
constructor(protected router: Router) {
}
}