Skip to content

Commit

Permalink
added disabled class for header when user routed to server error page
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaShapoval committed Nov 29, 2024
1 parent acb0439 commit de3f184
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/header/header.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="header" [ngClass]="{ 'header-secondary': !isRouter('/') }">
<div class="header" [ngClass]="{ 'header-secondary': !isRouter('/'), 'header-disabled': isRouter('/server-error') }">
<div [ngClass]="{ 'hide-content': (isAuthorizationLoading$ | async) }">
<div fxLayout="row" fxLayoutAlign="space-between">
<div class="logo-wrapper" *ngIf="isMobileScreen && !!navigationPaths?.length; then mobileNavTmpl; else logoTmpl"></div>
Expand Down
4 changes: 4 additions & 0 deletions src/app/header/header.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@
}
}

.header-disabled {
pointer-events: none;
}

.nav-mobile {
display: flex;
align-items: center;
Expand Down

0 comments on commit de3f184

Please sign in to comment.