]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/buttons/action-dropdown.component.html
1 <div class=
"dropdown-root" ngbDropdown [placement]=
"placement">
3 class=
"action-button" [ngClass]=
"{ small: buttonSize === 'small', grey: theme === 'grey', orange: theme === 'orange' }"
4 ngbDropdownToggle
role=
"button"
6 <span *
ngIf=
"!label" class=
"icon icon-action"></span>
7 <span *
ngIf=
"label" class=
"dropdown-toggle">{{ label }}
</span>
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>
15 <span *
ngIf=
"!action.linkBuilder" class=
"custom-action" class=
"dropdown-item" (click)=
"action.handler(entry)" role=
"button">