[menu] show username at the top of the menu

This commit is contained in:
nymkappa
2023-08-18 18:04:40 +02:00
parent 5aff2c74e6
commit d1c9e8b56e
3 changed files with 8 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
<div class="sidenav" [class]="navOpen ? 'open': 'close'" *ngIf="userMenuGroups$ | async as menuGroups">
<nav class="pt-3 pl-4 pr-4">
<nav>
<span *ngIf="userAuth"><strong>@ {{ userAuth.user.username }}</strong></span>
<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>