Back to Peertube

Action Dropdown.Component

client/src/app/shared/shared-main/buttons/action-dropdown.component.html

8.1.5861 B
Original Source

@if (areActionsDisplayed(actions(), entry())) {

@if (label()) { {{ label() }} @if (labelExtra) { }

} @else if (buttonIcon() === 'more-horizontal') { } @else if (buttonIcon() === 'more-vertical') { } @else if (buttonIcon() === 'chevron-down') {

} @for (actions of getActions(); track $index) { @for (action of actions; track action.label) { @if (isBlockDisplayed(actions, action, entry())) { @if (action.iconName) { } @else if (action.actorAvatar) { } {{ action.label }} @if (dropdownItemExtra) { } @if (action.ownerOrModeratorPrivilege && action.ownerOrModeratorPrivilege()) { } @if (action.description) { {{ action.description }} } @if (action.linkBuilder) { @if (!action.isHeader) { } } @else { @if (!action.isHeader) { } @else if (areActionsDisplayed(actions, entry())) {

} } } } @if (areActionsDisplayed(actions, entry())) {

} }

}