mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-10-08 14:51:14 +00:00
cleanup sidebar
This commit is contained in:
@@ -1,10 +1,8 @@
|
|||||||
<div class="sidenav">
|
<div class="sidenav">
|
||||||
<ng-container [ngSwitch]="data.mode">
|
|
||||||
<app-sidenav-header (toggleNavBar)="toggleClick()"></app-sidenav-header>
|
<app-sidenav-header (toggleNavBar)="toggleClick()"></app-sidenav-header>
|
||||||
|
|
||||||
<div class="section-sub-actions">
|
<div class="section-sub-actions">
|
||||||
<div *ngFor="let group of groups; trackBy: trackByGroupId" class="section" [ngClass]="'section--' + data.mode">
|
<div *ngFor="let group of groups; trackBy: trackByGroupId" class="section">
|
||||||
<ng-container *ngSwitchCase="'expanded'">
|
|
||||||
<mat-list-item *ngFor="let item of group.items; trackBy: trackByLinkId">
|
<mat-list-item *ngFor="let item of group.items; trackBy: trackByLinkId">
|
||||||
<ng-container *ngIf="!item.component">
|
<ng-container *ngIf="!item.component">
|
||||||
<app-expand-menu [item]="item"></app-expand-menu>
|
<app-expand-menu [item]="item"></app-expand-menu>
|
||||||
@@ -13,20 +11,6 @@
|
|||||||
<adf-dynamic-component [data]="{ item: item, state: 'expanded' }" [id]="item.component"></adf-dynamic-component>
|
<adf-dynamic-component [data]="{ item: item, state: 'expanded' }" [id]="item.component"></adf-dynamic-component>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
</ng-container>
|
|
||||||
|
|
||||||
<ng-container *ngSwitchCase="'collapsed'">
|
|
||||||
<div class="list-item" *ngFor="let item of group.items; trackBy: trackByLinkId">
|
|
||||||
<ng-container *ngIf="!item.component">
|
|
||||||
<app-button-menu [item]="item"></app-button-menu>
|
|
||||||
</ng-container>
|
|
||||||
|
|
||||||
<ng-container *ngIf="item.component">
|
|
||||||
<adf-dynamic-component [data]="{ item: item, state: 'collapsed' }" [id]="item.component"></adf-dynamic-component>
|
|
||||||
</ng-container>
|
|
||||||
</div>
|
|
||||||
</ng-container>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user