mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-06-30 18:14:45 +00:00
* nested menus for create button * evaluate sub-menu permissions * demo plugin * "create library" action * unit tests and proper effect name
27 lines
1.0 KiB
HTML
27 lines
1.0 KiB
HTML
<ng-container *ngIf="expanded">
|
|
<button
|
|
data-automation-id="create-button"
|
|
mat-raised-button
|
|
[matMenuTriggerFor]="rootMenu"
|
|
title="{{ 'APP.NEW_MENU.TOOLTIP' | translate }}">
|
|
<span class="app-create-menu__text">{{ 'APP.NEW_MENU.LABEL' | translate }}</span>
|
|
<mat-icon title="{{ 'APP.NEW_MENU.TOOLTIP' | translate }}">arrow_drop_down</mat-icon>
|
|
</button>
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="!expanded">
|
|
<button
|
|
class="app-create-menu--collapsed"
|
|
data-automation-id="create-button"
|
|
[matMenuTriggerFor]="rootMenu"
|
|
title="{{ 'APP.NEW_MENU.TOOLTIP' | translate }}">
|
|
<mat-icon title="{{ 'APP.NEW_MENU.TOOLTIP' | translate }}">queue</mat-icon>
|
|
</button>
|
|
</ng-container>
|
|
|
|
<mat-menu #rootMenu="matMenu" class="app-create-menu__root-menu app-create-menu__sub-menu" [overlapTrigger]="false" yPosition="below">
|
|
<ng-container *ngFor="let action of createActions; trackBy: trackById">
|
|
<app-toolbar-menu-item [actionRef]="action"></app-toolbar-menu-item>
|
|
</ng-container>
|
|
</mat-menu>
|