projects
/
oweals
/
peertube.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
provide specific engine boundaries for nodejs and yarn
[oweals/peertube.git]
/
client
/
src
/
app
/
shared
/
buttons
/
action-dropdown.component.ts
diff --git
a/client/src/app/shared/buttons/action-dropdown.component.ts
b/client/src/app/shared/buttons/action-dropdown.component.ts
index 6649b092accb278f93c04452342ebcb64fc49b61..15f9556dc95b89bf035c929705a3f1be4aa0461e 100644
(file)
--- 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<T> = {
handler?: (a: T) => any
linkBuilder?: (a: T) => (string | number)[]
isDisplayed?: (a: T) => boolean
handler?: (a: T) => any
linkBuilder?: (a: T) => (string | number)[]
isDisplayed?: (a: T) => boolean
+ isHeader?: boolean
}
export type DropdownButtonSize = 'normal' | 'small'
}
export type DropdownButtonSize = 'normal' | 'small'
@@
-26,6
+27,7
@@
export class ActionDropdownComponent<T> {
@Input() entry: T
@Input() placement = 'bottom-left auto'
@Input() entry: T
@Input() placement = 'bottom-left auto'
+ @Input() container: null | 'body'
@Input() buttonSize: DropdownButtonSize = 'normal'
@Input() buttonDirection: DropdownDirection = 'horizontal'
@Input() buttonSize: DropdownButtonSize = 'normal'
@Input() buttonDirection: DropdownDirection = 'horizontal'