restore original code

This commit is contained in:
Denys Vuika
2023-02-13 14:33:39 -05:00
committed by Yasa-Nataliya
parent d6c04ebd89
commit 396e1e573f
3 changed files with 10 additions and 11 deletions

View File

@@ -230,7 +230,6 @@
{ {
"id": "app.navbar.menu", "id": "app.navbar.menu",
"order": 100, "order": 100,
"icon": "folder",
"title": "APP.BROWSE.FILE.SIDENAV_LINK.LABEL", "title": "APP.BROWSE.FILE.SIDENAV_LINK.LABEL",
"description": "APP.BROWSE.FILE.SIDENAV_LINK.TOOLTIP", "description": "APP.BROWSE.FILE.SIDENAV_LINK.TOOLTIP",
"rules": { "rules": {

View File

@@ -23,18 +23,20 @@
#acaExpansionPanel="acaExpansionPanel" #acaExpansionPanel="acaExpansionPanel"
[@.disabled]="true" [@.disabled]="true"
> >
<mat-expansion-panel-header expandedHeight="32x" collapsedHeight="32px" role="group"> <mat-expansion-panel-header expandedHeight="48x" collapsedHeight="48px" role="group">
<mat-panel-title> <mat-panel-title>
<div class="item"> <div class="item">
<div <button
[attr.aria-label]="item.title | translate" [attr.aria-label]="item.title | translate"
[id]="item.id" [id]="item.id"
[attr.title]="item.description | translate" [attr.title]="item.description | translate"
[attr.data-automation-id]="item.id" [attr.data-automation-id]="item.id"
class="action-panel-header" mat-button
class="action-button full-width"
> >
<span class="action-panel-header__label">{{ item.title | translate }}</span> <adf-icon *ngIf="item.icon" [value]="item.icon"></adf-icon>
</div> <span class="action-button__label">{{ item.title | translate }}</span>
</button>
</div> </div>
</mat-panel-title> </mat-panel-title>
</mat-expansion-panel-header> </mat-expansion-panel-header>

View File

@@ -10,8 +10,7 @@
<app-expand-menu [item]="item"></app-expand-menu> <app-expand-menu [item]="item"></app-expand-menu>
</ng-container> </ng-container>
<ng-container *ngIf="item.component"> <ng-container *ngIf="item.component">
<adf-dynamic-component [data]="{ item: item, state: 'expanded' }" <adf-dynamic-component [data]="{ item: item, state: 'expanded' }" [id]="item.component"></adf-dynamic-component>
[id]="item.component"></adf-dynamic-component>
</ng-container> </ng-container>
</mat-list-item> </mat-list-item>
</ng-container> </ng-container>
@@ -19,12 +18,11 @@
<ng-container *ngSwitchCase="'collapsed'"> <ng-container *ngSwitchCase="'collapsed'">
<div class="list-item" *ngFor="let item of group.items; trackBy: trackByLinkId"> <div class="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-button-menu [item]="item"></app-button-menu>
</ng-container> </ng-container>
<ng-container *ngIf="item.component"> <ng-container *ngIf="item.component">
<adf-dynamic-component [data]="{ item: item, state: 'collapsed' }" [id]="item.component"> <adf-dynamic-component [data]="{ item: item, state: 'collapsed' }" [id]="item.component"></adf-dynamic-component>
</adf-dynamic-component>
</ng-container> </ng-container>
</div> </div>
</ng-container> </ng-container>