2023-08-18 18:33:09 +02:00
|
|
|
<div class="sidenav" [class]="navOpen ? 'open': 'close'">
|
2023-08-18 18:04:40 +02:00
|
|
|
<nav>
|
|
|
|
<span *ngIf="userAuth"><strong>@ {{ userAuth.user.username }}</strong></span>
|
2023-08-18 18:33:09 +02:00
|
|
|
<a *ngIf="!userAuth" class="d-flex justify-content-center align-items-center nav-link m-0" routerLink="/login" role="tab">
|
|
|
|
<fa-icon [icon]="['fas', 'user-circle']" [fixedWidth]="true" style="font-size: 25px;margin-right: 15px;"></fa-icon>
|
|
|
|
<span style="font-size: 20px;">Sign in</span>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<ng-container *ngIf="userMenuGroups$ | async as menuGroups">
|
|
|
|
<div *ngFor="let group of menuGroups" style="height: max-content;">
|
|
|
|
<h6 class="d-flex justify-content-between align-items-center mt-4 mb-2 text-uppercase">
|
|
|
|
<span>{{ group.title }}</span>
|
|
|
|
</h6>
|
|
|
|
<ul class="nav flex-column" *ngFor="let item of group.items">
|
2023-08-20 22:53:33 +02:00
|
|
|
<li class="nav-item d-flex justify-content-start align-items-center" (click)="onLinkClick()">
|
2023-08-18 18:33:09 +02:00
|
|
|
<fa-icon [icon]="['fas', item.faIcon]" [fixedWidth]="true"></fa-icon>
|
|
|
|
<button *ngIf="item.link === 'logout'" class="btn nav-link" role="tab" (click)="logout()">{{ item.title }}</button>
|
|
|
|
<a *ngIf="item.title !== 'Logout'" class="nav-link" [routerLink]="[item.link]" role="tab">{{ item.title }}</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</ng-container>
|
2023-08-18 18:04:40 +02:00
|
|
|
|
2023-08-18 17:56:07 +02:00
|
|
|
</nav>
|
2023-08-17 18:51:39 +02:00
|
|
|
</div>
|