Browse Source

Fix header

pull/4872/head
Thomas Kaul 3 months ago
parent
commit
2ac612bae8
  1. 25
      apps/client/src/app/components/header/header.component.html
  2. 5
      apps/client/src/app/components/header/header.component.ts

25
apps/client/src/app/components/header/header.component.html

@ -20,9 +20,11 @@
mat-flat-button mat-flat-button
[ngClass]="{ [ngClass]="{
'font-weight-bold': 'font-weight-bold':
currentRoute === routes.home || currentRoute === routes.zen, currentRoute === internalRoutes.home.path ||
currentRoute === internalRoutes.zen.path,
'text-decoration-underline': 'text-decoration-underline':
currentRoute === routes.home || currentRoute === routes.zen currentRoute === internalRoutes.home.path ||
currentRoute === internalRoutes.zen.path
}" }"
[routerLink]="['/']" [routerLink]="['/']"
>Overview</a >Overview</a
@ -34,8 +36,9 @@
i18n i18n
mat-flat-button mat-flat-button
[ngClass]="{ [ngClass]="{
'font-weight-bold': currentRoute === routes.portfolio, 'font-weight-bold': currentRoute === internalRoutes.portfolio.path,
'text-decoration-underline': currentRoute === routes.portfolio 'text-decoration-underline':
currentRoute === internalRoutes.portfolio.path
}" }"
[routerLink]="routerLinkPortfolio" [routerLink]="routerLinkPortfolio"
>Portfolio</a >Portfolio</a
@ -47,8 +50,9 @@
i18n i18n
mat-flat-button mat-flat-button
[ngClass]="{ [ngClass]="{
'font-weight-bold': currentRoute === routes.accounts, 'font-weight-bold': currentRoute === internalRoutes.accounts.path,
'text-decoration-underline': currentRoute === routes.accounts 'text-decoration-underline':
currentRoute === internalRoutes.accounts.path
}" }"
[routerLink]="routerLinkAccounts" [routerLink]="routerLinkAccounts"
>Accounts</a >Accounts</a
@ -235,7 +239,8 @@
mat-menu-item mat-menu-item
[ngClass]="{ [ngClass]="{
'font-weight-bold': 'font-weight-bold':
currentRoute === routes.home || currentRoute === routes.zen currentRoute === internalRoutes.home.path ||
currentRoute === internalRoutes.zen.path
}" }"
[routerLink]="['/']" [routerLink]="['/']"
>Overview</a >Overview</a
@ -245,7 +250,7 @@
i18n i18n
mat-menu-item mat-menu-item
[ngClass]="{ [ngClass]="{
'font-weight-bold': currentRoute === routes.portfolio 'font-weight-bold': currentRoute === internalRoutes.portfolio.path
}" }"
[routerLink]="routerLinkPortfolio" [routerLink]="routerLinkPortfolio"
>Portfolio</a >Portfolio</a
@ -254,7 +259,9 @@
class="d-flex d-sm-none" class="d-flex d-sm-none"
i18n i18n
mat-menu-item mat-menu-item
[ngClass]="{ 'font-weight-bold': currentRoute === routes.accounts }" [ngClass]="{
'font-weight-bold': currentRoute === internalRoutes.accounts.path
}"
[routerLink]="routerLinkAccounts" [routerLink]="routerLinkAccounts"
>Accounts</a >Accounts</a
> >

5
apps/client/src/app/components/header/header.component.ts

@ -83,13 +83,13 @@ export class HeaderComponent implements OnChanges {
public hasPermissionToAccessFearAndGreedIndex: boolean; public hasPermissionToAccessFearAndGreedIndex: boolean;
public hasPermissionToCreateUser: boolean; public hasPermissionToCreateUser: boolean;
public impersonationId: string; public impersonationId: string;
public internalRoutes = internalRoutes;
public isMenuOpen: boolean; public isMenuOpen: boolean;
public routeAbout = routes.about; public routeAbout = routes.about;
public routeFeatures = routes.features; public routeFeatures = routes.features;
public routeMarkets = routes.markets; public routeMarkets = routes.markets;
public routePricing = routes.pricing; public routePricing = routes.pricing;
public routeResources = routes.resources; public routeResources = routes.resources;
public routes = routes;
public routerLinkAbout = ['/' + routes.about]; public routerLinkAbout = ['/' + routes.about];
public routerLinkAccount = ['/' + routes.account]; public routerLinkAccount = ['/' + routes.account];
public routerLinkAccounts = internalRoutes.accounts.routerLink; public routerLinkAccounts = internalRoutes.accounts.routerLink;
@ -98,8 +98,9 @@ export class HeaderComponent implements OnChanges {
public routerLinkMarkets = ['/' + routes.markets]; public routerLinkMarkets = ['/' + routes.markets];
public routerLinkPortfolio = internalRoutes.portfolio.routerLink; public routerLinkPortfolio = internalRoutes.portfolio.routerLink;
public routerLinkPricing = ['/' + routes.pricing]; public routerLinkPricing = ['/' + routes.pricing];
public routerLinkRegister = ['/' + publicRoutes.register.path]; public routerLinkRegister = publicRoutes.register.routerLink;
public routerLinkResources = ['/' + routes.resources]; public routerLinkResources = ['/' + routes.resources];
public routes = routes;
private unsubscribeSubject = new Subject<void>(); private unsubscribeSubject = new Subject<void>();

Loading…
Cancel
Save