mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
767 B
30 lines
767 B
<mat-tab-nav-panel #tabPanel class="flex-grow-1 overflow-auto">
|
|
<router-outlet></router-outlet>
|
|
</mat-tab-nav-panel>
|
|
|
|
<nav
|
|
mat-align-tabs="center"
|
|
mat-tab-nav-bar
|
|
[disablePagination]="true"
|
|
[tabPanel]="tabPanel"
|
|
>
|
|
@for (tab of tabs; track tab) {
|
|
@if (tab.showCondition !== false) {
|
|
<a
|
|
#rla="routerLinkActive"
|
|
class="no-min-width px-3"
|
|
mat-tab-link
|
|
routerLinkActive
|
|
[active]="rla.isActive"
|
|
[routerLink]="tab.routerLink"
|
|
[routerLinkActiveOptions]="{ exact: true }"
|
|
>
|
|
<ion-icon
|
|
[name]="tab.iconName"
|
|
[size]="deviceType === 'mobile' ? 'large' : 'small'"
|
|
/>
|
|
<div class="d-none d-sm-block ml-2">{{ tab.label }}</div>
|
|
</a>
|
|
}
|
|
}
|
|
</nav>
|
|
|