]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/buttons/action-dropdown.component.html
Add ability for users to block an account/instance on server side
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / buttons / action-dropdown.component.html
CommitLineData
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 >
6 <span *ngIf="!label" class="icon icon-action"></span>
7 <span *ngIf="label" class="dropdown-toggle">{{ label }}</span>
eacb25c4
C
8 </div>
9
141b177d
C
10 <div ngbDropdownMenu class="dropdown-menu">
11 <ng-container *ngFor="let action of actions">
12 <div class="dropdown-item" *ngIf="action.isDisplayed === undefined || action.isDisplayed(entry) === true">
13 <a *ngIf="action.linkBuilder" class="dropdown-item" [routerLink]="action.linkBuilder(entry)">{{ action.label }}</a>
eacb25c4 14
141b177d
C
15 <span *ngIf="!action.linkBuilder" class="custom-action" class="dropdown-item" (click)="action.handler(entry)" role="button">
16 {{ action.label }}
17 </span>
18 </div>
19 </ng-container>
20 </div>
eacb25c4 21</div>