Merge pull request #5254 from mempool/nymkappa/hide-accel-menu

[services] hide accelerator from user menu if not whitelisted
This commit is contained in:
wiz 2024-07-02 21:43:26 +09:00 committed by GitHub
commit 3c106a3c8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,9 +23,13 @@
<ng-container *ngIf="userMenuGroups$ | async as menuGroups">
<div class="menu-click" *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 menu-click">
<span class="menu-click">{{ group.title }}</span>
</h6>
@if (menuGroups.length > 1) {
<h6 class="d-flex justify-content-between align-items-center mt-4 mb-2 text-uppercase menu-click">
<span class="menu-click">{{ group.title }}</span>
</h6>
} @else {
<span class="d-block mt-2"></span>
}
<ul class="nav flex-column menu-click" *ngFor="let item of group.items" (click)="onLinkClick(item.link)">
<li class="nav-item d-flex justify-content-start align-items-center menu-click">
<fa-icon class="menu-click" [icon]="['fas', item.faIcon]" [fixedWidth]="true"></fa-icon>