diff options
Diffstat (limited to 'client/src/app/shared/shared-main/buttons/action-dropdown.component.ts')
-rw-r--r-- | client/src/app/shared/shared-main/buttons/action-dropdown.component.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/app/shared/shared-main/buttons/action-dropdown.component.ts b/client/src/app/shared/shared-main/buttons/action-dropdown.component.ts index ad55677d8..e6164fced 100644 --- a/client/src/app/shared/shared-main/buttons/action-dropdown.component.ts +++ b/client/src/app/shared/shared-main/buttons/action-dropdown.component.ts | |||
@@ -48,6 +48,12 @@ export class ActionDropdownComponent<T> { | |||
48 | return [ this.actions as DropdownAction<T>[] ] | 48 | return [ this.actions as DropdownAction<T>[] ] |
49 | } | 49 | } |
50 | 50 | ||
51 | getQueryParams (action: DropdownAction<T>, entry: T) { | ||
52 | if (action.queryParamsBuilder) return action.queryParamsBuilder(entry) | ||
53 | |||
54 | return {} | ||
55 | } | ||
56 | |||
51 | areActionsDisplayed (actions: Array<DropdownAction<T> | DropdownAction<T>[]>, entry: T): boolean { | 57 | areActionsDisplayed (actions: Array<DropdownAction<T> | DropdownAction<T>[]>, entry: T): boolean { |
52 | return actions.some(a => { | 58 | return actions.some(a => { |
53 | if (Array.isArray(a)) return this.areActionsDisplayed(a, entry) | 59 | if (Array.isArray(a)) return this.areActionsDisplayed(a, entry) |