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
[ngClass]="{
'font-weight-bold':
currentRoute === routes.home || currentRoute === routes.zen,
currentRoute === internalRoutes.home.path ||
currentRoute === internalRoutes.zen.path,
'text-decoration-underline':
currentRoute === routes.home || currentRoute === routes.zen
currentRoute === internalRoutes.home.path ||
currentRoute === internalRoutes.zen.path
}"
[routerLink]="['/']"
>Overview</a
@ -34,8 +36,9 @@
i18n
mat-flat-button
[ngClass]="{
'font-weight-bold': currentRoute === routes.portfolio,
'text-decoration-underline': currentRoute === routes.portfolio
'font-weight-bold': currentRoute === internalRoutes.portfolio.path,
'text-decoration-underline':
currentRoute === internalRoutes.portfolio.path
}"
[routerLink]="routerLinkPortfolio"
>Portfolio</a
@ -47,8 +50,9 @@
i18n
mat-flat-button
[ngClass]="{
'font-weight-bold': currentRoute === routes.accounts,
'text-decoration-underline': currentRoute === routes.accounts
'font-weight-bold': currentRoute === internalRoutes.accounts.path,
'text-decoration-underline':
currentRoute === internalRoutes.accounts.path
}"
[routerLink]="routerLinkAccounts"
>Accounts</a
@ -235,7 +239,8 @@
mat-menu-item
[ngClass]="{
'font-weight-bold':
currentRoute === routes.home || currentRoute === routes.zen
currentRoute === internalRoutes.home.path ||
currentRoute === internalRoutes.zen.path
}"
[routerLink]="['/']"
>Overview</a
@ -245,7 +250,7 @@
i18n
mat-menu-item
[ngClass]="{
'font-weight-bold': currentRoute === routes.portfolio
'font-weight-bold': currentRoute === internalRoutes.portfolio.path
}"
[routerLink]="routerLinkPortfolio"
>Portfolio</a
@ -254,7 +259,9 @@
class="d-flex d-sm-none"
i18n
mat-menu-item
[ngClass]="{ 'font-weight-bold': currentRoute === routes.accounts }"
[ngClass]="{
'font-weight-bold': currentRoute === internalRoutes.accounts.path
}"
[routerLink]="routerLinkAccounts"
>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 hasPermissionToCreateUser: boolean;
public impersonationId: string;
public internalRoutes = internalRoutes;
public isMenuOpen: boolean;
public routeAbout = routes.about;
public routeFeatures = routes.features;
public routeMarkets = routes.markets;
public routePricing = routes.pricing;
public routeResources = routes.resources;
public routes = routes;
public routerLinkAbout = ['/' + routes.about];
public routerLinkAccount = ['/' + routes.account];
public routerLinkAccounts = internalRoutes.accounts.routerLink;
@ -98,8 +98,9 @@ export class HeaderComponent implements OnChanges {
public routerLinkMarkets = ['/' + routes.markets];
public routerLinkPortfolio = internalRoutes.portfolio.routerLink;
public routerLinkPricing = ['/' + routes.pricing];
public routerLinkRegister = ['/' + publicRoutes.register.path];
public routerLinkRegister = publicRoutes.register.routerLink;
public routerLinkResources = ['/' + routes.resources];
public routes = routes;
private unsubscribeSubject = new Subject<void>();

Loading…
Cancel
Save