|
|
@@ -13,24 +13,26 @@
|
|
|
<input [id]="section.id" type="checkbox" [checked]="section.collapsedByDefault" />
|
|
|
<label [for]="section.id">{{ section.label | translate }}</label>
|
|
|
<ul class="nav-list">
|
|
|
- <li *ngFor="let item of section.items">
|
|
|
- <a
|
|
|
- class="nav-link"
|
|
|
- [attr.data-item-id]="section.id"
|
|
|
- [routerLink]="getRouterLink(item)"
|
|
|
- routerLinkActive="active"
|
|
|
- >
|
|
|
- <ng-container *ngIf="item.statusBadge | async as itemBadge">
|
|
|
- <div
|
|
|
- *ngIf="itemBadge.type !== 'none'"
|
|
|
- class="status-badge"
|
|
|
- [class]="itemBadge.type"
|
|
|
- ></div>
|
|
|
- </ng-container>
|
|
|
- <clr-icon [attr.shape]="item.icon || 'block'" size="20"></clr-icon>
|
|
|
- {{ item.label | translate }}
|
|
|
- </a>
|
|
|
- </li>
|
|
|
+ <ng-container *ngFor="let item of section.items">
|
|
|
+ <li *vdrIfPermissions="item.requiresPermission">
|
|
|
+ <a
|
|
|
+ class="nav-link"
|
|
|
+ [attr.data-item-id]="section.id"
|
|
|
+ [routerLink]="getRouterLink(item)"
|
|
|
+ routerLinkActive="active"
|
|
|
+ >
|
|
|
+ <ng-container *ngIf="item.statusBadge | async as itemBadge">
|
|
|
+ <div
|
|
|
+ *ngIf="itemBadge.type !== 'none'"
|
|
|
+ class="status-badge"
|
|
|
+ [class]="itemBadge.type"
|
|
|
+ ></div>
|
|
|
+ </ng-container>
|
|
|
+ <clr-icon [attr.shape]="item.icon || 'block'" size="20"></clr-icon>
|
|
|
+ {{ item.label | translate }}
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
+ </ng-container>
|
|
|
</ul>
|
|
|
</section>
|
|
|
</ng-container>
|