]>
Commit | Line | Data |
---|---|---|
141b177d | 1 | <div class="dropdown-root" ngbDropdown [placement]="placement"> |
791645e6 C |
2 | <div |
3 | class="action-button" [ngClass]="{ small: buttonSize === 'small', grey: theme === 'grey', orange: theme === 'orange' }" | |
4 | ngbDropdownToggle role="button" | |
5 | > | |
457bb213 | 6 | <my-global-icon *ngIf="!label" class="more-icon" iconName="more"></my-global-icon> |
791645e6 | 7 | <span *ngIf="label" class="dropdown-toggle">{{ label }}</span> |
eacb25c4 C |
8 | </div> |
9 | ||
141b177d | 10 | <div ngbDropdownMenu class="dropdown-menu"> |
f97c91f7 | 11 | <ng-container *ngFor="let actions of getActions()"> |
eacb25c4 | 12 | |
f97c91f7 C |
13 | <ng-container *ngFor="let action of actions"> |
14 | <ng-container *ngIf="action.isDisplayed === undefined || action.isDisplayed(entry) === true"> | |
15 | <a *ngIf="action.linkBuilder" class="dropdown-item" [routerLink]="action.linkBuilder(entry)">{{ action.label }}</a> | |
16 | ||
17 | <span *ngIf="!action.linkBuilder" class="custom-action dropdown-item" (click)="action.handler(entry)" role="button"> | |
18 | {{ action.label }} | |
19 | </span> | |
20 | </ng-container> | |
af5767ff | 21 | </ng-container> |
f97c91f7 C |
22 | |
23 | <div class="dropdown-divider"></div> | |
24 | ||
141b177d C |
25 | </ng-container> |
26 | </div> | |
f97c91f7 | 27 | </div> |