blob: 11162742474c8058d8ec165493ed58d0369f5ce5 (
plain) (
tree)
|
|
<div class="dropdown-root" ngbDropdown [placement]="placement">
<div
class="action-button" [ngClass]="{ small: buttonSize === 'small', grey: theme === 'grey', orange: theme === 'orange' }"
ngbDropdownToggle role="button"
>
<span *ngIf="!label" class="icon icon-action"></span>
<span *ngIf="label" class="dropdown-toggle">{{ label }}</span>
</div>
<div ngbDropdownMenu class="dropdown-menu">
<ng-container *ngFor="let action of actions">
<div class="dropdown-item" *ngIf="action.isDisplayed === undefined || action.isDisplayed(entry) === true">
<a *ngIf="action.linkBuilder" class="dropdown-item" [routerLink]="action.linkBuilder(entry)">{{ action.label }}</a>
<span *ngIf="!action.linkBuilder" class="custom-action" class="dropdown-item" (click)="action.handler(entry)" role="button">
{{ action.label }}
</span>
</div>
</ng-container>
</div>
</div>
|