X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fbuttons%2Faction-dropdown.component.ts;h=15f9556dc95b89bf035c929705a3f1be4aa0461e;hb=0c4bacbff53bc732f5a2677d62a6ead7752e2405;hp=6649b092accb278f93c04452342ebcb64fc49b61;hpb=be27ef3b4682c5639039474c39ee0d234d16f482;p=oweals%2Fpeertube.git diff --git a/client/src/app/shared/buttons/action-dropdown.component.ts b/client/src/app/shared/buttons/action-dropdown.component.ts index 6649b092a..15f9556dc 100644 --- a/client/src/app/shared/buttons/action-dropdown.component.ts +++ b/client/src/app/shared/buttons/action-dropdown.component.ts @@ -9,6 +9,7 @@ export type DropdownAction = { handler?: (a: T) => any linkBuilder?: (a: T) => (string | number)[] isDisplayed?: (a: T) => boolean + isHeader?: boolean } export type DropdownButtonSize = 'normal' | 'small' @@ -26,6 +27,7 @@ export class ActionDropdownComponent { @Input() entry: T @Input() placement = 'bottom-left auto' + @Input() container: null | 'body' @Input() buttonSize: DropdownButtonSize = 'normal' @Input() buttonDirection: DropdownDirection = 'horizontal'